Unit 'DBGrids' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomDBGrid.SelectedColumn

Represents the currently selected column in the grid control.

Declaration

Source position: dbgrids.pas line 564

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.