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

TcxGridCard Class

Represents a record in a Card View.

#Declaration

Delphi
TcxGridCard = class(
    TcxGridCustomLayoutRecord
)

#Remarks

The TcxGridCard class represents a single card referencing the data of a record within a data source. Records are presented in a form of cards in a Card View of class TcxGridCardView. You can get the cards displayed within the current View via the Card View’s ViewData.Cards array.

The visual position of a card is defined by the Index property. When you sort data by any item (card row), the card’s Index is changed to reflect the current card position. You can use the RecordIndex property of a card as a constant reference to this card. RecordIndex determines the position of the corresponding record in a data source.

The Values and DisplayTexts properties allow you to get a value and its text representation at a specific item (card row).

For more information on the View’s records see the TcxCustomGridRecord class topic.

See Also