aspnetmvc-16859-components-grid-view-data-representation-basics-columns-unbound-columns.md
This topic describes the main concepts of using unbound columns within the GridView extension.
GridView supports both bound and unbound columns. Bound columns obtain their data from a data source. Unbound columns are not bound to any field in a data source. These columns can be populated manually by handling the GridViewSettings.CustomUnboundColumnData event or by specifying an expression via the GridViewDataColumn.UnboundExpression used to evaluate values for this field. The Expressions section describes the syntax for creating expressions.
There is no difference between working with bound and unbound columns. You can sort, group, display summaries and filter unbound columns in the same manner as bound columns.
An unbound column meets the following requirements.
ASP.NET MVC GridView provides two approaches to generate data for unbound columns.
Using an Unbound Expression
Using a Delegate Method
When the GridView extension is bound to a data source in Database Server Mode, you can only enable sorting, grouping, filtering and summary calculation for unbound columns that are populated with unbound expressions.
Note
The GridViewSettings.CustomUnboundColumnData event’s ASPxGridColumnDataEventArgs.IsSetData parameter isn’t in effect.