A newer version of this page is available. Switch to the current version.

Columns and Card Fields

  • 2 minutes to read

The GridControl displays tabular information in its Views. Data sources present this information using data fields and records. In a Table View, data fields are represented as columns, and records are displayed as rows. Column headers can be arranged into bands to create multi-row layout. In a Card View, records are represented as cards, and data fields are represented as card fields. In the TreeListView, records are represented as tree nodes, and data fields are represented as columns.

Columns and card fields are encapsulated by GridColumn objects. These objects are stored within the grid's GridControl.Columns collection.

Columns

A column consists of the following elements:

  • A column header which identifies a column. It displays the column's caption and enables an end-user to move and resize the column, apply sorting and filtering, etc. For detailed information on column header settings, see Column Header Customization.
  • Cells that display values from the corresponding field in a data source.
  • A footer cell which displays a total summary(s).

TableView_Column

TreeList Hierarchy Column

By default, the TreeList's hierarchy column (the one that displays expand and collapse buttons) is the first visible column. You can explicitly specify the hierarchy column for the TreeList view using the TreeListView.TreeColumnFieldName property. This allows you to move the column and its associated hierarchy information to any position.

TreeStructure1.png

Card Fields

A card field consists of the following elements:

  • The caption which indicates to which data source field the card field corresponds.
  • A field value.

CardView_CardFields

For detailed information on card settings, see Card Settings.

Band Columns

TableView allows you to organize columns in logical groups (bands) and display them within multi-row headers. A band column is visually represented by a header displayed above headers of the columns it combines.

WPF_GridControl_BandColumn

For detailed information on band column settings, see Bands.

See Also