ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.AllowArrows Property

Gets or sets a value indicating whether arrow keys can be used to navigate around the grid.

[Visual Basic]

Public Property AllowArrows As Boolean

[C#]

public bool AllowArrows {get;set;}

[Delphi]

public property AllowArrows: Boolean read get_AllowArrows write set_AllowArrows;

Remarks

If True (the default), the user can use the arrow keys to move from cell to cell within the same row.

If False, the left and right arrow keys will move focus from control to control and cannot be used to move between cells.

The user cannot use the arrow keys to move out of the C1TrueDBGrid control when this property is set to True. If the WrapCellPointer property is also set to True, then the arrow keys will wrap around rows and the user can navigate the entire grid using the arrow keys.

Example

The following code uses the AllowArrows property so that the left and right arrow keys cannot be used to move between cells:

·      Visual Basic

       Me.C1TrueDBGrid1.AllowArrows = False

·      C#

       this.c1TrueDBGrid1.AllowArrows = false;

·      Delphi

       Self.C1TrueDBGrid1.AllowArrows := False;

See Also

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


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