mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 16:56:25 +02:00
LCL: dbgrid, fixes application block when calling dbgrid.clear, issue #8795
git-svn-id: trunk@11054 -
This commit is contained in:
parent
68ad9e2527
commit
830233dac3
@ -466,6 +466,7 @@ type
|
||||
public
|
||||
constructor Create(AGrid: TCustomGrid; aItemClass: TCollectionItemClass);
|
||||
function Add: TGridColumn;
|
||||
procedure Clear;
|
||||
function RealIndex(Index: Integer): Integer;
|
||||
function IndexOf(Column: TGridColumn): Integer;
|
||||
function IsDefault: boolean;
|
||||
@ -8240,6 +8241,13 @@ begin
|
||||
result := TGridColumn( inherited add );
|
||||
end;
|
||||
|
||||
procedure TGridColumns.Clear;
|
||||
begin
|
||||
BeginUpdate;
|
||||
inherited Clear;
|
||||
EndUpdate
|
||||
end;
|
||||
|
||||
function TGridColumns.RealIndex(Index: Integer): Integer;
|
||||
var
|
||||
i: Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user