Back to Devexpress

CardView.TopLeftCardIndex Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-card-dot-cardview-f1a1b6f3.md

latest3.4 KB
Original Source

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

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public int TopLeftCardIndex { get; set; }
vb
<Browsable(False)>
Public Property TopLeftCardIndex As Integer

Property Value

TypeDescription
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 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

GetVisibleIndex(Int32)

GetVisibleRowHandle(Int32)

MaximumCardColumns

MaximumCardRows

TopLeftCardChanged

CardView Class

CardView Members

DevExpress.XtraGrid.Views.Card Namespace