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

TCustomDBGrid.SelectedColumn

Represents the currently selected column in the grid control

Declaration

Source position: dbgrids.pas line 562

public property TCustomDBGrid.SelectedColumn : TColumn
  read GetCurrentColumn;

Description

SelectedColumn is a read-only TColumn property that represents the currently selected column in the grid control. SelectedColumn contains a value only when the Columns collection has been enabled (or contains visible columns) for the control. Otherwise, SelectedColumn returns the value .

GetCurrentColumn is the read access specifier for the property value, and returns the TColumn instance in Columns at the position specified in SelectedIndex.

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