RxDBGrid - fix open dataset without create collumns

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2724 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
alexs75 2013-04-11 16:45:50 +00:00
parent 6cd6cb0824
commit e2986ffdf1
2 changed files with 3 additions and 3 deletions

View File

@ -3784,7 +3784,7 @@ var
RCol:TRxColumn;
begin
if (not (FFooterOptions.Active and DatalinkActive)) or (Columns.Count = 0) or
(DataSource.DataSet.RecordCount<=0) then
(DataSource.DataSet.RecordCount<=0) or (gsAddingAutoColumns in GridStatus) then
Exit;
//Дополнительно проверим - а стоит ли делать пробег по данным - есть ли агрегатные функции
APresent := False;

View File

@ -233,7 +233,7 @@ var
begin
with Editor do
begin
if NewStyleControls then
(* if NewStyleControls then
begin
if BorderStyle = bsNone then
I := 0
@ -245,7 +245,7 @@ begin
Result.X := {SendMessage(Handle, LM_GETMARGINS, 0, 0) and $0000FFFF} + I;
Result.Y := I;
end
else
else *)
begin
if BorderStyle = bsNone then
I := 0