ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Split.AllowRowSelect Property

Gets or sets a value indicating the ability to select rows.

[Visual Basic]

Public Property AllowRowSelect As Boolean

[C#]

public bool AllowRowSelect {get;set;}

[Delphi]

public property AllowRowSelect: Boolean read get_AllowRowSelect write set_AllowRowSelect;

Remarks

If True (the default), the user can select rows.

If False, the user cannot select rows.

Use the AllowRowSelect property to control whether the user can select rows by clicking the record selector buttons. By setting this property to False, record selection can be disabled without hiding the record selectors altogether, since you may want to use the record selectors to provide visual feedback when the current row is modified.

Note: The user cannot select rows if the RecordSelectors property is set to False for all splits, even if AllowRowSelect is True.

Example

The following code restricts selecting rows in the second split:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(1).AllowRowSelect = False

·      C#

       this.c1TrueDBGrid1.Splits[1].AllowRowSelect = false;

·      Delphi

       Self.C1TrueDBGrid1.Splits[1].AllowRowSelect := False;

See Also

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


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