Object Reference > True DBGrid Properties > SelEndCol Property |
This property returns or sets the zero-based ordinal position of the rightmost selected column in a split.
object.SelEndCol= integer
Read/Write at run time. Not available at design time.
If no columns are selected, then this property returns -1.
If a grid contains multiple splits, then setting its SelEndCol property has the same effect as setting the SelEndCol property of the current split. The index of the current split is available through the TDBGrid control's Split property.
Setting this property to -1 deselects all columns and also sets the SelStartCol property to -1.
Note
You can also use the ClearSelCols method to deselect all columns within a split.