Gets or sets a value indicating the ability to select columns.
[Visual Basic]
Public Property AllowColSelect As Boolean
[C#]
public bool AllowColSelect {get;set;}
[Delphi]
public property AllowColSelect: Boolean read get_AllowColSelect write set_AllowColSelect;
Remarks
If True (the default), the user can select columns.
If False, the user cannot select columns.
Use the AllowColSelect property to control whether the user can select columns by clicking within the column header area. Setting this property to False suppresses highlighting when the user clicks a column header, which is useful for applications that respond to the C1TrueDBGrid.HeadClick event.
Example
The following code restricts selecting columns in the second split:
Me.C1TrueDBGrid1.Splits(1).AllowColSelect = False
· C#
this.c1TrueDBGrid1.Splits[1].AllowColSelect = false;
· Delphi
Self.C1TrueDBGrid1.Splits[1].AllowColSelect := False;
See Also
Split Class | Split Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |