EnsureRowVisible(Row: Integer);
EnsureRowVisible(Row: integer);
Row. Index of the row which should be seen in the visible range of the table.
The EnsureRowVisible method scrolls the table in such a way, that the defined row is in the visible range.
To execute the example a form with the Button component named Button1 on it, the UiTabSheet component named UiTabSheet1 are required. UiTabSheet1 should be selected as a data source for the TabSheetBox component. The link to the Tab system assembly should be added.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
View: ITabView;
Begin
View := UiTabSheet1.TabSheet.View;
View.EnsureRowVisible(15);
End Sub Button1OnClick;
After executing the example the table is scrolled in such a way, that the row with index 15 is in the visible range.
To execute the example a form with the Button component named Button1 on it, the UiTabSheet component named UiTabSheet1 are required. UiTabSheet1 should be selected as a data source for the TabSheetBox component. The link to the Tab system assembly should be added.
Private Sub button_Click(sender: System.Object; e: System.EventArgs);
Var
View: ITabView;
Begin
View := uiTabSheetNet1.TabSheetUi.TabSheet.View;
View.EnsureRowVisible(35);
End Sub;
After executing the example the table is scrolled in such a way, that the row with index 15 is in the visible range.
See also: