Data Columns
- 3 minutes to read
Data Columns are used to display and edit data. The Bootstrap Grid View supports both bound and unbound data columns.
- Bound data columns represent fields in the Bootstrap Grid View‘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.
There are fifteen types of server data columns.
Class Name | Description |
---|---|
Bootstrap |
Represents a data column used to display images from a binary stream. |
Bootstrap |
Represents a data column with the button editor. |
Bootstrap |
Represents a data column used to display and edit data from a Boolean data field. |
Bootstrap |
Represents a data column whose values are edited using the color editor. |
Bootstrap |
Represents a data column whose values are edited using the combo box editor. |
Bootstrap |
Represents a data column that automatically determines the type of its editors based on the type of a data field. |
Bootstrap |
Represents a data column used to display and edit a Date |
Bootstrap |
Represents a data column with an editor containing a customizable dropdown window. |
Bootstrap |
Represents a data column with a hyperlink functionality. |
Bootstrap |
Represents a data column used to display images from specified URLs. |
Bootstrap |
Represents a data column used to display and edit memo data. |
Bootstrap |
Represents a data column with the Progress Bar editor. |
Bootstrap |
Represents a data column used to display and edit numeric data. |
Bootstrap |
Represents a data column with the tag box editor. |
Bootstrap |
Represents a data column used to display and edit text. |
Bootstrap |
Represents a data column used to display and edit time portions of Date |
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 using the GridViewDataColumn.Settings property.
To make a column read-only, set its GridViewDataColumn.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.