Moves the current row positions of the grid by the given offset from the given row.
[Visual Basic]
Overloads Overridable Public Sub MoveRelative( _
ByVal offset As Integer, _
ByVal row As Integer _
)
[C#]
virtual public void MoveRelative(
int offset,
int row
);
[Delphi]
public procedure MoveRelative(
offset: Int32;
row: Int32
); overload; virtual;
Parameters
offset
The number of records to move. A positive value indicates forward movement; a negative value indicates backward movement.
row
The origin of the relative movement.
Example
The following code moves the current row position two rows forward, starting at the 4th row:
Me.C1TrueDBGrid1.MoveRelative(2, 3)
· C#
this.c1TrueDBGrid1.MoveRelative(2, 3);
· Delphi
Self.C1TrueDBGrid1.MoveRelative(2, 3);
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace | C1TrueDBGrid.MoveRelative Overload List
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |