ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.AllowRowSelect Property

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

[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 selected without hiding the record selectors altogether, since the record selectors may want to used 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 uses the AllowRowSelect and RecordSelectors properties to allow the user to select rows:

·      Visual Basic

       Me.C1TrueDBGrid1.AllowRowSelect = True

       Me.C1TrueDBGrid1.RecordSelectors = True

·      C#

       this.c1TrueDBGrid1.AllowRowSelect = true;

       this.c1TrueDBGrid1.RecordSelectors = true;

·      Delphi

       Self.C1TrueDBGrid1.AllowRowSelect := True;

       Self.C1TrueDBGrid1.RecordSelectors := True;

See Also

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


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