[Overview][Constants][Types][Classes][Procedures and functions][Index] |
EndLayout finishes layout changes for the control
Source position: dbgrids.pas line 458
protected procedure TCustomDBGrid.EndLayout; |
EndLayout is a procedure used along with BeginLayout to minimize the number of times layout changed notification events are triggered by the control. Layout changes occur when the control enables certain values in its Options property when AutoAdjustColumn is called and when the Columns collection links to Fields in the associated dataset.
The grid maintains an internal counter that tracks the number of times BeginLayout has been called to start a layout change for the control. EndLayout decrements that counter and when it reaches 0 (zero) the DoLayoutChanged method is called.
|
BeginLayout starts producing layout changes for the grid control |
|
#lcl.DBGrids.TCustomDBGrid.DoLayoutChanged |
|
Update the grid and its scrollbars when its layout has changed |
|
LayoutChanged links columns to Fields and inserts any required automatic columns |
|
|
Stores values from the TDbGridOption enumeration |
|
#lcl.DBGrids.TCustomDBGrid.AutoAdjustColumn |
||
|
Associates column items with the corresponding Fields in the Dataset |
|
|
Redraws the Grid control that owns the collection |
lazarus-ccr.sourceforge.net |