ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.AllowColSelect Property

Gets or sets a value indicating the ability to select columns in the grid.

[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 HeadClick event.

Example

The following code uses the AllowColSelect property to restrict the user from selecting columns:

·      Visual Basic

       Me.C1TrueDBGrid1.AllowColSelect = False

·      C#

       this.c1TrueDBGrid1.AllowColSelect = false;

·      Delphi

       Self.C1TrueDBGrid1.AllowColSelect := False;

For an example demonstrating the AllowColSelect property, see the Deleting a Record topic.

See Also

C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.