Skip to main content
A newer version of this page is available. .

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.v19.2.dll

Declaration

[Browsable(false)]
public int TopLeftCardIndex { get; set; }

Property Value

Type Description
Int32

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

Remarks

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.

Note

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 real Views that are displayed within the Grid Control. The real Views with which an end-user interacts at runtime can be accessed using the following methods.

See Also