Scrolls the grid data area by the specified number of rows and columns.
[Visual Basic]
Public Sub ScrollGrid( _
ByVal cols As Integer, _
ByVal rows As Integer _
)
[C#]
public void ScrollGrid(
int cols,
int rows
);
[Delphi]
public procedure ScrollGrid(
cols: Int32;
rows: Int32
);
Parameters
cols
Number of columns to scroll.
rows
Number of rows to scroll.
Example
Suppose you have a large grid or a grid containing multiple splits. You can use the ScrollGrid method to scroll to a specified area of the grid. The following code scrolls to show the third column and fourth row:
Me.C1TrueDBGrid1.ScrollGrid(2, 3)
· C#
this.C1TrueDBGrid1.ScrollGrid(2, 3);
· Delphi
Self.C1TrueDBGrid1.ScrollGrid(2, 3);
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |