TreeListView.EditFormCaptionBinding Property

Gets or sets the binding that allows you to define the edit form caption.

Namespace: DevExpress.Xpf.Grid

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

Declaration

public BindingBase EditFormCaptionBinding { get; set; }
Public Property EditFormCaptionBinding As BindingBase

Property Value

Type Description
BindingBase

A BindingBase descendant that defines the edit form caption.

Remarks

When the grid's edit form is in dialog mode, it can display a caption. Use the EditFormCaptionBinding property to configure the edit dialog caption. The DataContext for this binding is the RowData object that represents the row that is being edited.

The following example demonstrates the grid control that displays a hierarchical list. The edit dialog caption contains the name of the selected employee.

<Window.DataContext>
    <local:ViewModel/>
</Window.DataContext>
...
<dxg:GridControl Name="gC" ItemsSource="{Binding Employees}">
    <dxg:GridControl.View>
        <dxg:TreeListView KeyFieldName="ID" ParentFieldName="ParentID" EditFormShowMode="Dialog">
                    <dxg:TreeListView.EditFormCaptionBinding>
                        <Binding Path="Row.Name" RelativeSource="{RelativeSource Self}"/>
                    </dxg:TreeListView.EditFormCaptionBinding>
                </dxg:TreeListView>
    </dxg:GridControl.View>
</dxg:GridControl>
...

Implements

DevExpress.Xpf.Grid.ITableView.EditFormCaptionBinding
See Also