TcxGridTableController.TopRowIndex Property
Specifies the index of the top visible row.
#Declaration
Delphi
property TopRowIndex: Integer read; write;
#Property Value
Type | Description |
---|---|
Integer | The index of the top visible row in the parent grid View. |
#Remarks
Use TopRowIndex
and LeftPos properties to scroll the parent grid View vertically and horizontally.
The TopRowIndex
property allows you to scroll the parent grid View vertically on a per-row basis. The LeftPos property specifies the horizontal pixel offset of grid content when the horizontal scrollbar[1] is visible.
#Code Example: Scroll Grid View Content
The following code example scrolls the parent grid View to the right by 25
pixels and down by 1 row:
cxGridTableView1.Controller.LeftPos := 25;
cxGridTableView1.Controller.TopRowIndex := cxGridTableView1.Controller.TopRowIndex + 1;
Footnotes
-
The horizontal scrollbar is visible if the following conditions are met:
- Content does not fit into the scrollable area of the parent grid View.
- The GridView.OptionsView.ScrollBars property is set to
ssHorizontal
orssBoth
.
See Also