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 |
---|---|
BootstrapGridViewBinaryImageColumn | Represents a data column used to display images from a binary stream. |
BootstrapGridViewButtonEditColumn | Represents a data column with the button editor. |
BootstrapGridViewCheckColumn | Represents a data column used to display and edit data from a Boolean data field. |
BootstrapGridViewColorEditColumn | Represents a data column whose values are edited using the color editor. |
BootstrapGridViewComboBoxColumn | Represents a data column whose values are edited using the combo box editor. |
BootstrapGridViewDataColumn | Represents a data column that automatically determines the type of its editors based on the type of a data field. |
BootstrapGridViewDateColumn | Represents a data column used to display and edit a DateTime data field. |
BootstrapGridViewDropDownEditColumn | Represents a data column with an editor containing a customizable dropdown window. |
BootstrapGridViewHyperLinkColumn | Represents a data column with a hyperlink functionality. |
BootstrapGridViewImageColumn | Represents a data column used to display images from specified URLs. |
BootstrapGridViewMemoColumn | Represents a data column used to display and edit memo data. |
BootstrapGridViewProgressBarColumn | Represents a data column with the Progress Bar editor. |
BootstrapGridViewSpinEditColumn | Represents a data column used to display and edit numeric data. |
BootstrapGridViewTagBoxColumn | Represents a data column with the tag box editor. |
BootstrapGridViewTextColumn | Represents a data column used to display and edit text. |
BootstrapGridViewTimeEditColumn | Represents a data column used to display and edit time portions of DateTime values. |
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.