Skip to main content

CardView.TopLeftCardIndex Property

Gets or sets which card is displayed within the View’s top-left corner.

Namespace: DevExpress.XtraGrid.Views.Card

Assembly: DevExpress.XtraGrid.v22.2.dll

NuGet Package: DevExpress.Win.Grid


public int TopLeftCardIndex { get; set; }

Property Value

Type Description

An integer value representing the visible index of the card located at the top-left corner.


When all cards do not fit into the View area, a horizontal scrollbar is displayed so that end-users can scroll the View. You can determine which card is presently displayed within the View’s top-left corner using the TopLeftCardIndex property. To scroll a Card View, and make a specific card visible at the top-left corner, assign the card’s visible index to the TopLeftCardIndex property.

Each time a Card View is scrolled, the View’s CardView.TopLeftCardChanged event is raised.


Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the TopLeftCardIndex member must not be invoked for these Views. The TopLeftCardIndex member can only be used with Views that display real data within the Grid Control. Use the following methods to access these Views with which an end user interacts at runtime.

See Also