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 the ASPxCardView, it should then be saved back to the data source.
To provide data for unbound columns and save the 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 according to the card currently being processed. The current data card can be identified using the ASPxGridColumnDataEventArgs.ListSourceRowIndex parameter, which specifies the card’s index in the ASPxCardView’s data source. It is not affected by any sorting or filtering settings.
Set Data
The event’s ASPxGridColumnDataEventArgs.IsSetData parameter isn’t in effect. To post data to a datasouce, handle the ASPxCardView.CardUpdating event.
Task-Based Help
How to: Add an Unbound Column to Supply Additional Data