Skip to main content

TcxGridCardView Class

Represents a Card View.

Declaration

TcxGridCardView = class(
    TcxGridCustomLayoutView
)

Remarks

The TcxGridCardView object represents a Card View. Card View is a suitable way of displaying root and child levels of the hierarchy but it can never be a master View. It lacks the Table View functionality (grouping and filtering), but sometimes it is more informative, for instance, for displaying personal information.

The key element of a Card View is the Card View row. All rows can be accessed via the Rows property. Each Card View row is an instance of the TcxGridCardViewRow class. Members of this class allow you to specify the row caption, caption alignment, row representation (caption row, category or data row), row width, editor for the row value, sort order for the cards within the current View, the type of row layering in a card, etc. Rows corresponding to fields in a single record are combined into cards. The number of cards to display within a Card View is determined via the card width settings (accessible via the OptionsView.CardWidth property). A card’s placement orientation within a View is specified via the LayoutDirection property.

The Card View has several option sets controlling different aspects of the View behavior and appearance. These sets include:

  • OptionsBehavior which contains settings that determine a Card View’s response to user actions;

  • OptionsCustomize which contains settings that allow an end-user to manipulate View items at runtime;

  • OptionsData which determine the functionality of a data-aware Card View;

  • OptionsSelection which contains settings that are to do with selections within a Card View;

  • OptionsView which contains appearance options for a Card View;

  • FilterBox which contains appearance options of the filter box within a Card View;

  • DateTimeHandling which contains settings that control the manner in which date/time values are handled within a Card View.

The Card View also owns a set of styles defining the appearance of the Card View elements.

See Also