[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'DBGrids' (#lcl)

TDBGridColumns

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TDBGridColumns - the columns of data found in a Database Grid

Declaration

Source position: dbgrids.pas line 256

type TDBGridColumns = class(TGridColumns)

protected

  procedure Update(); override;

  

Update - calls LayoutChanged if updates required

  function ColumnFromField();

  

ColumnFromField - returns the column identity corresponding to the given field

  function HasAutomaticColumns;

  

HasAutomaticColumns - checks through the list of columns, and if any one IsAutomaticColumn, returns True

  function HasDesignColumns;

  

HasDesignColumns - checks through the list of columns, and if any one IsDesignColumn, returns True

  procedure RemoveAutoColumns;

  

RemoveAutoColumns - goes through the list of columns and removes any that are automatic

public

  function Add;

  

Add - first removes any autocolumns, then calls inherited Add

  procedure LinkFields;

  

LinkFields - links all the fields to the corresponding items in the list of columns

  procedure ResetColumnsOrder();

  

ResetColumnsOrder if coDesignOrder has been specified, rearrange the columns in the specified order

  property Items: TColumn; default; [rw]

  

Items - the indexed array of Columns that hold the data in the Grid

end;

Inheritance

TDBGridColumns

  

TDBGridColumns - the columns of data found in a Database Grid

|

TGridColumns

  

TGridColumns - the group of columns in the grid

|

TCollection

|

TPersistent

|

TObject

The latest version of this document can be found at lazarus-ccr.sourceforge.net.