Scrolls the data area by the specified number of rows and columns.
[Visual Basic]
Public Sub ScrollCtl( _
ByVal Cols As Integer, _
ByVal Rows As Integer _
)
[C#]
public void ScrollCtl(
int Cols,
int Rows
);
[Delphi]
public procedure ScrollCtl(
Cols: Int32;
Rows: Int32
);
Parameters
Cols
Number of columns to scroll.
Rows
Number of rows to scroll.
Example
Suppose you have a large amount of data in your C1TrueDBDropdown. You can use the ScrollCtl method to scroll to a specified row and column in the drop-down. This method is very similar to the C1TrueDBGrid.ScrollGrid method for C1TrueDBGrid.
The following code scrolls to the third column and fourth row:
Me.C1TrueDBDropdown1.ScrollCtl(2, 3)
· C#
this.c1TrueDBDropdown1.ScrollCtl(2, 3);
· Delphi
Self.C1TrueDBDropdown1.ScrollCtl(2, 3);
See Also
C1TrueDBDropdown Class | C1TrueDBDropdown Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |