Unbound data can be "appended" to a data item through the use of unbound item properties, which are represented by the DataGridUnboundItemProperty class. Unlike unbound columns, which can be used to display non-data related information such as a label or controls that allow some sort of action to be carried out, unbound item properties can be used to provide additional data, such as calculated columns (see Example).
Example
The following example demonstrates how to use an unbound item property to display a calculated value. In this example, the total value of the units in stock.The following code provides the implementation of the QueryValue event in which the unbound value will be calculated and returned.The following code provides the implementation of the QueryValue event in which the unbound value will be calculated and returned.
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2