Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Collapse]ASP.NET Bootstrap Controls
 [Expand]Getting Started
 [Collapse]Grid View
  [Expand]Binding to Data
  [Collapse]Data Representation Basics
    Cells
   [Collapse]Columns
     Data Columns
     Command Columns
     Unbound Columns
     Accessing Columns
  [Expand]Data Summaries
  [Expand]Filtering
  [Expand]Grouping
   Sorting
  [Expand]Focus and Navigation
  [Expand]Data Editing
  [Expand]Master-Detail Relationship
   Export Overview
   Data-Toggle Attribute
 [Expand]Charts
 [Expand]Data Editors
 [Expand]Site Navigation and Layout
 [Expand]API Reference
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Accessing Columns

The Bootstrap Grid View control stores its columns within the BootstrapGridView.Columns collection. The collection of visible columns can be accessed using the ASPxGridView.VisibleColumns property.

An individual column can be accessed using the GridViewColumnCollection.Item property by specifying one of the following column characteristics.

Note

There is the following priority in using string column identifiers when searching for a column.

  • First, the Name property match is searched for.
  • Then, the first FieldName property match is searched for.
  • At last, the first Caption property match is searched for.

Below is an example of accessing columns using different column characteristics.

Client columns can be accessed using the ASPxClientGridView.GetColumn, ASPxClientGridView.GetColumnByField or ASPxClientGridView.GetColumnById method.

How would you rate this topic?​​​​​​​