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

TcxGridCardView.CreateRow Method

Creates a Card View row and adds it to the current Card View.

#Declaration

Delphi
function CreateRow: TcxGridCardViewRow;

#Returns

Type
TcxGridCardViewRow

#Remarks

Use the CreateRow method to create a Card View row and add it to the current View. After the Card View row is added to the current View, a user can specify its settings: connection to a data storage, behavior options and styles, etc.

The following code shows the creation of a card row within the cxGridCardView1 View. In provider mode, you need to assign the DataBinding.ValueTypeClass and DataBinding.Data properties. Refer to the Provider Mode section for details.

const
  PostalCodeID = 7;  //unique ID
//...
  with cxGridCardView1.CreateRow do
  begin
    Caption := 'Postal Code';
    DataBinding.ValueTypeClass := TcxIntegerValueType;
    DataBinding.Data := PostalCodeID;
  end;
See Also