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

TcxGridCardViewViewData Class

Represents a class providing data retrieved from the data controller as an array of cards.

#Declaration

Delphi
TcxGridCardViewViewData = class(
    TcxGridCustomLayoutViewViewData
)

#Remarks

ViewData is an intermediate class for retrieving data from the data controller and presenting it as an array of cards for a Card View (TcxGridCardView). TcxGridCardViewViewData does not introduce new functionality but publishes the Cards and CardCount properties. The Cards collection allows you to get the values and display texts stored in the rows of a specific card. Also, you can focus and select a specific card.

Every record (card) is an object of the TcxGridCard class. It provides properties to retrieve values and texts for every item (field) in the record. Each card can be identified by its index and record index. Index defines the visual position of a card within a Card View while the record index defines the position of a record within a data source. Using the properties of the TcxGridCard class, you can focus and select a specific card.

To access the ViewData object attributes use the Card View’s ViewData property.

See Also