Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

See Also