Gets or sets a value indicating the behavior of Tab and arrow keys at row boundaries.
[Visual Basic]
Public Property WrapCellPointer As Boolean
[C#]
public bool WrapCellPointer {get;set;}
[Delphi]
public property WrapCellPointer: Boolean read get_WrapCellPointer write set_WrapCellPointer;
Remarks
If True, the cell pointer will wrap from the last column to the first in the next row (or from the first column to the last in the previous row).
If False (the default), the cell pointer will not wrap to the next (or previous) row, but will stop at the last (or first) column of the current row.
If TabAcrossSplits is False, the cell pointer will wrap only within the current split. If TabAcrossSplits is True, the cell pointer will move from one split to the next before wrapping occurs.
If TabAction is set to TabActionEnum.GridNavigation, the TAB key will behave like the arrow keys, and will automatically wrap to the next or previous cell.
Example
The following code sets the WrapCellPointer property to True. Since the TabActionEnum is set to TabActionEnum.GridNavigation, the cell pointer wraps to the next record when it reaches the end of the current record:
Me.C1TrueDBGrid1.TabAction = TabActionEnum.GridNavigation
Me.C1TrueDBGrid1.WrapCellPointer = True
· C#
this.c1TrueDBGrid1.TabAction = TabActionEnum.GridNavigation;
this.c1TrueDBGrid1.WrapCellPointer = true;
· Delphi
Self.C1TrueDBGrid1.TabAction := TabActionEnum.GridNavigation;
Self.C1TrueDBGrid1.WrapCellPointer := True;
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |