Skip to main content

TcxGridCardView.CreateRow Method

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

Declaration

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