EhLib
ContentsIndexHome
PreviousUpNext
Customizing indicator column

 

The Indicator Column is usually shown at the very left part of the Grid and is colored in red color (The color varieties depending of current color scheme in the Windows). The Indicator Column can display such information as: Indicator of the current record (Is shown as triangular), State of editing, the number of the current record and checkbox of selected record. Use properties of TDBGridEh.IndicatorOptions property to customize the Indicator Column.

TDBGridEhIndicatorOptions = set of TDBGridEhIndicatorOption;
TDBGridEhIndicatorOption = (gioShowRowIndicatorEh, gioShowRecNoEh, gioShowRowselCheckboxesEh);
gioShowRowIndicatorEh 
Display indicator of current record in the indicator column. 
gioShowRecNoEh 
Display the number of the current record in the indicator column. This property works only for DataSets that support IsSequenced mode (See Help about TDataSet.IsSequenced). 
gioShowRowselCheckboxesEh 
Display checkbox of selected record. At runtime, user can select records by clicking on checkboxes. Bookmarks of selected records are stored in the TDBGridEh.SelectedRows or TDBGridEh.Selection.Rows collection. 

 

Use the sub-properties of property TDBGridEh.IndicatorParams to customize the display of the indicator column.

Property name 
Property type 
Description 
Color 
TColor 
Specifies the background color for the indicator color. 
HorzLineColor 
TColor 
Color of the horizontal lines in the data area. 
HorzLines 
Boolean 
Presence of horizontal lines in the data area. 
VertLineColor 
TColor 
Color vertical lines in the data area. 
VertLines 
Boolean 
Presence of vertical lines in the data area. 
FillStyle 
TGridCellFillStyleEh 
Specifies the style of filling the indicator cells. 
RecNoShowStep 
Integer 
If set to gioShowRecNoEh IndicatorOptions (Also the same as in dghShowRecNo OptionsEh), then this property specifies step with which to show record numbers in the column display. For records that fall between steps, the record number is displayed instead of a point. This eliminates the effect of "flickering" numbers, which can occur when displaying each record number. 
Copyright (c) 1998-2013. All rights reserved.
What do you think about this topic? Send feedback!