Skip to main content
A newer version of this page is available. .

Data Columns

  • 3 minutes to read

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

  • Bound data columns represent fields in ASPxGridView‘s data source. Their GridViewDataColumn.FieldName properties refer to valid fields in a data source.
  • Unbound columns are not bound to any field in a data source. These columns must be populated manually. For information, see Unbound Columns.

 

There are fifteen types of server data columns.

Class Name Description
GridViewDataBinaryImageColumn Represents a data column used to display images from a binary stream.
GridViewDataButtonEditColumn Represents a data column with the button editor.
GridViewDataCheckColumn Represents a data column used to display and edit data from a Boolean data field.
GridViewDataColorEditColumn Represents a data column used to display and edit color values.
GridViewDataComboBoxColumn Represents a data column whose values are edited using the combo box editor.
GridViewDataDateColumn Represents a data column used to display and edit data from a DateTime data field.
GridViewDataDropDownEditColumn Represents a data column with an editor containing a customizable dropdown window.
GridViewDataHyperLinkColumn Represents a data column with a hyperlink functionality.
GridViewDataImageColumn Represents a data column used to display images from specified URLs.
GridViewDataMemoColumn Represents a data column used to display and edit memo data.
GridViewDataProgressBarColumn Represents a data column with the Progress Bar editor.
GridViewDataSpinEditColumn Represents a data column used to display and edit numeric data.
GridViewDataTextColumn Represents a data column used to display and edit text.
GridViewDataTimeEditColumn Represents a data column used to display and edit time portions of DateTime values.
GridViewDataTokenBoxColumn A data column with the token box editor.

On the client, data columns are represented by ASPxClientGridViewColumn objects.

Behavior

Since different types of data columns present different types of data, they provide their own editors. For example, Boolean values are edited using a check box editor, while DateTime values are edited using a DateTime editor. To access and customize the column editor’s settings, use the GridViewEditDataColumn.PropertiesEdit property.

Data columns provide a set of Boolean properties that enable you to specify which elements of a column’s functionality (sorting, grouping, etc.) are available to end-users. These options can be accessed via the GridViewDataColumn.Settings property.

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

You can use the Properties[EditorType] object to configure a column’s editor and filter editor on a page and in the Customization Dialog. In this case, we do not recommend you to use an editor’s ClientInstanceName property to access this editor because all editors will have the same client instance name (ClientInstanceName). To get a column’s editor, use the GetEditor(column) method instead of the editor’s ClientInstanceName.

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.

End-users can hide and show columns via the Customization Window.