Skip to main content
A newer version of this page is available. .
Tag

ColumnBase.DisplayMemberBinding Property

OBSOLETE

Use the Binding property instead

Gets or sets the binding that associates the column with a property in the data source.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.2.Core.dll

Declaration

[Obsolete("Use the Binding property instead")]
[Browsable(false)]
[DefaultValue(null)]
public BindingBase DisplayMemberBinding { get; set; }

Property Value

Type Default Description
BindingBase *null*

A BindingBase object representing the data binding for the column.

Remarks

The DisplayMemberBinding property allows a column to specify a property of the grid control’s DataControlBase.ItemsSource to bind to. Note that the data source should implement INotifyPropertyChanged to notify the grid control that a property value has changed.

Note

When working with data structures that contain Dynamic Objects, use the DisplayMemberBinding property instead of ColumnBase.FieldName.

Example

<dxg:GridControl x:Name="grid">
            <dxg:GridControl.Columns>
                <dxg:GridColumn Header="Id" DisplayMemberBinding="{Binding Path=RowData.Row.Id, Mode=TwoWay}"/>
                <dxg:GridColumn Header="First Name" DisplayMemberBinding="{Binding Path=RowData.Row.FirstName, Mode=TwoWay}"/>
                <dxg:GridColumn Header="Last Name" DisplayMemberBinding="{Binding Path=RowData.Row.LastName, Mode=TwoWay}"/>
            </dxg:GridControl.Columns>
            <dxg:GridControl.View>
                <dxg:TableView Name="View"  ShowAutoFilterRow="True" NewItemRowPosition="Top" AllowPerPixelScrolling="True"/>
            </dxg:GridControl.View>
        </dxg:GridControl>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DisplayMemberBinding property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also