The following Custom Column Data Event Args properties provide information specific to this event.
In the Grid Control, you can create unbound (calculated) columns.
To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.
A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source.
So, to display a specific value in a cell, you need to pass a corresponding value to the e. Each time a cell needs to be updated, the Custom Unbound Column Data event is called.
These features are still supported for unbound columns that are populated using expressions (see Grid Column. Assume that the Grid Control is bound to a table that contains the "Quantity", "Unit Price" and "Discount" columns.
Unbound Expression property or by handling the Custom Unbound Column Data event.
To learn about the syntax of expressions, see Expressions.
The example below shows how to add an unbound column to the grid to display the amount of each order according to the expression: Quantity*Unit Price*(1-Discount).
The result is displayed below: For another example which illustrates working with unbound columns, see the Unbound Columns tutorial.