Back to Devexpress

TreeListView.CustomUnboundColumnDataCommand Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-c1c7715c.md

latest3.4 KB
Original Source

TreeListView.CustomUnboundColumnDataCommand Property

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

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public ICommand<UnboundColumnNodeArgs> CustomUnboundColumnDataCommand { get; set; }
vb
Public Property CustomUnboundColumnDataCommand As ICommand(Of UnboundColumnNodeArgs)

Property Value

TypeDescription
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 DataThe 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 ChangesThe 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

Unbound Columns

GridControl.CustomUnboundColumnDataCommand

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace