Back to Devexpress

Data Columns

aspnet-114141-components-card-view-concepts-data-representation-basics-columns-data-columns.md

latest4.0 KB
Original Source

Data Columns

  • Jun 16, 2022
  • 2 minutes to read

Data columns are used to display and edit data. ASPxCardView supports both bound and unbound data columns.

  • Bound data columns represent fields in ASPxCardView ‘s data source. A column’s CardViewColumn.FieldName property refers to its bound data source field.
  • Unbound columns are not bound to any field in a data source. These columns must be populated manually. See the following help topic for more information: Unbound Columns.

There are 15 types of server data columns.

Class NameDescription
CardViewBinaryImageColumnRepresents a data column used to display images from a binary stream.
CardViewButtonEditColumnRepresents a data column with the button editor.
CardViewCheckColumnRepresents a data column used to display and edit data from a Boolean data field.
CardViewColorEditColumnRepresents a data column used to display and edit color values.
CardViewComboBoxColumnRepresents a data column whose values are edited with the combo box editor.
CardViewDateColumnRepresents a data column used to display and edit data from a DateTime data field.
CardViewDropDownEditColumnRepresents a data column with an editor containing a customizable dropdown window.
CardViewHyperLinkColumnRepresents a data column with hyperlink functionality.
CardViewImageColumnRepresents a data column used to display images from specified URLs.
CardViewMemoColumnRepresents a data column used to display and edit memo data.
CardViewProgressBarColumnRepresents a data column with the Progress Bar editor.
CardViewSpinEditColumnRepresents a data column used to display and edit numeric data.
CardViewTextColumnRepresents a data column used to display and edit text.
CardViewTimeEditColumnRepresents a data column used to display and edit time portions of DateTime values.
CardViewTokenBoxColumnA data column with the token box editor.

On the client side, data columns are represented by ASPxClientCardViewColumn objects.

Behavior

Since different data column types display different data types, each column provides its own editor. For example, a check box editor is used to edit Boolean values, while a DateTime editor is used to edit DateTime values. To access and customize the column editor’s settings, use the CardViewColumn.PropertiesEdit property.

Data columns provide a set of Boolean properties that enable you to specify which elements of a column’s functionality (sorting, filtering, etc.) are available to end users. Use the CardViewColumn.Settings property to access these options.

To make a column read-only, set its CardViewColumn.ReadOnly property to true.

Visibility

The column’s visibility is specified by its WebColumnBase.Visible property. Its position among other visible columns is specified by its WebColumnBase.VisibleIndex property.