TreeListView.CustomUnboundColumnData Event
Enables data to be supplied to unbound columns.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v14.2.dll
#Declaration
#Event Data
The CustomUnboundColumnData event's handler receives an argument of the TreeListUnboundColumnDataEventArgs type. The following properties provide information specific to this event:
Property | Description |
---|---|
Column |
Gets the unbound column currently being processed.
Inherited from Column |
Is |
Gets whether you should provide data for the currently processed cell.
Inherited from Column |
Is |
Gets whether a cell's value should be saved to a data source.
Inherited from Column |
Node | Gets the node which contains the processed cell. |
Value |
Gets or sets the processed cell's value.
Inherited from Column |
#Remarks
Unbound columns are not bound to any field in a data source. In most instances, data for unbound columns is obtained from a custom data source or is calculated based upon the values of bound columns. To provide data for unbound columns, and save any changes made back to a custom data source, handle the CustomUnboundColumnData event.
Display Unbound Data
The event parameter's ColumnDataEventArgsBase.IsGetData property returns true. The event is raised for each node, allowing the values of unbound columns to be specified. The processed node is returned by the TreeListUnboundColumnDataEventArgs.Node property. A value should be assigned to the ColumnDataEventArgsBase.Value property.
Save Changes
The event parameter's ColumnDataEventArgsBase.IsSetData property returns true. The ColumnDataEventArgsBase.Value property contains the modified cell value that should be saved to a custom data source.