Enables you to supply data to unbound columns.
public event BootstrapCardViewColumnDataEventHandler CustomUnboundColumnData
Public Event CustomUnboundColumnData As BootstrapCardViewColumnDataEventHandler
The CustomUnboundColumnData event handler receives an argument of the BootstrapCardViewColumnDataEventArgs type. The following properties provide information specific to this event.
|Column||Gets the unbound column currently being processed.|
|IsGetData||Gets whether you should provide data for the currently processed cell.|
|IsSetData||Gets whether the cell's value should be stored in a custom data source.|
|ListSourceRowIndex||Gets the current data item's (row, card or record) index in the data source.|
|Value||Gets or sets the value of the cell currently being processed.|
The CustomUnboundColumnData event is fired for unbound columns only. To create an unbound column, add a new data column to the BootstrapCardView.Columns collection and set its CardViewColumn.UnboundType property to an appropriate value, based on the type of data the column is supposed to display. This column's CardViewColumn.FieldName property value must be unique and it must not refer to any field in the CardView's underlying data source.
When the CardView is loaded, it raises the CustomUnboundColumnData event for each cell in unbound columns, allowing you to populate cells with data. By default, the event's ASPxGridColumnDataEventArgs.IsGetData parameter is set to true. In this instance, you need to supply data for the currently processed cell. Obtain the required value from a custom data source and assign it to the ASPxGridColumnDataEventArgs.Value parameter.
To save the modified data back to the data source, handle the ASPxCardView.CardUpdating event.
The currently processed cell is identified by the column and card, which can be determined by the BootstrapCardViewColumnDataEventArgs.Column and ASPxGridColumnDataEventArgs.ListSourceRowIndex properties, respectively.