[Overview][Constants][Types][Classes][Procedures and functions][Index] |
LayoutChanged links columns to Fields and inserts any required automatic columns
Source position: dbgrids.pas line 491
protected procedure TCustomDBGrid.LayoutChanged; virtual; |
LayoutChanged is a virtual procedure used to link Columns to the Fields which read and write the values used in the control. LayoutChanged calls the TDBGridColumns.LinkFields method establish the column-to-fiels association. If Columns have not been explicitly defined the AddAutomaticColumns method is called to add a column for each Field in the linked dataset.
LayoutChanged calls the BeginLayout and EndLayout methods to minimize the number of times the OnLayoutChange event is signalled during updates to the control.
LayoutChanged performs no actions when ComponentState indicates the control is being destroyed (contains csDestroying).
lazarus-ccr.sourceforge.net |