Skip to main content
All docs
V24.1

TreeListView.CustomUnboundColumnDataCommand Property

Gets or sets a command that populates unbound columns with data.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.1.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public ICommand<UnboundColumnNodeArgs> CustomUnboundColumnDataCommand { get; set; }

Property Value

Type Description
ICommand<UnboundColumnNodeArgs>

A command that populates unbound columns with data.

Remarks

Bind a command to the CustomUnboundColumnDataCommand property to maintain a clean MVVM pattern. The command works like a CustomUnboundColumnData event handler and allows you to populate unbound columns with data in a View Model.

Unbound Columns are not bound to any field in the data source. You can calculate unbound column values based on values of bound columns or populate unbound columns with data from a custom data source.

To process unbound data in the GridControl, create a command that populates unbound columns with data and saves changes to a custom data source. Assign this command to the CustomUnboundColumnDataCommand property.

Display Unbound Data
The UnboundColumnNodeArgs.IsGetData property returns true when the GridControl populates unbound columns with data. The UnboundColumnNodeArgs.Item property returns the processed data source record. Specify the UnboundColumnNodeArgs.Value property to display data in the unbound column.
Save Changes
The UnboundColumnNodeArgs.IsSetData property returns true when a user changes a cell value. The UnboundColumnNodeArgs.Value property returns the modified cell value that you can save to a custom data source.
See Also