Providing Data for Unbound Columns
- 2 minutes to read
Data for unbound columns is generally obtained from a custom data source or is calculated based upon the values of bound columns.
To allow data editing for an unbound column, its data should be retrieved from a custom data source. When an end-user modifies column data within ASPxCardView, it should be saved back to the data source.
To provide data for unbound columns and save changes made by end users, handle the ASPxCardView.CustomUnboundColumnData event. This event is raised only for unbound columns.
If the ASPxGridColumnDataEventArgs.IsGetData parameter is set to true, the event handler should supply data for an unbound column. A value should be assigned to the ASPxGridColumnDataEventArgs.Value parameter based on the card currently being processed. Use the ASPxGridColumnDataEventArgs.ListSourceRowIndex parameter (which specifies the card's index in the ASPxCardView's data source) to identify the current data card. This parameter is not affected by sort or filter settings.