Skip to main content

TcxGridCardViewViewData Class

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

Declaration

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