Skip to main content

TcxGridTableController.TopRowIndex Property

Specifies the index of the top visible row.

Declaration

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
  1. The horizontal scrollbar is visible if the following conditions are met:

See Also