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.
Gets or sets the converter to convert values to and from the corresponding field in the underlying data source. (Inherited from Xceed.Wpf.DataGrid.DataGridItemPropertyBase)
Gets or sets the IEqualityComparer that is used to compare the equality of the item property's distinct values. (Inherited from Xceed.Wpf.DataGrid.DataGridItemPropertyBase)
Gets or sets the custom data comparer that will be used to sort the values of the data-grid item property's associated column. (Inherited from Xceed.Wpf.DataGrid.DataGridItemPropertyBase)
Initializes a new instance of the DataGridItemProperty class specifying the name and title of the property, its value path, indicating whether it is read only, if the corresponding cell can be edited when a new item is being inserted, and if it represents a sub relationship.
Raised for each data item in the underlying data source and allows unbound values to be provided for each item through the Value property received in the event arguments.
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