Providing Data for Unbound Columns
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.
Get Data
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.
Set Data
The event’s ASPxGridColumnDataEventArgs.IsSetData parameter is not in effect. To post data to a datasource, handle the ASPxCardView.CardUpdating event.
Task-Based Help
How to: Add an Unbound Column to Supply Additional Data