Skip to main content

AutoCompleteColumn.DisplayMember Property

Gets or sets the name of a data source field that contains values displayed in the drop-down list.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

NuGet Package: DevExpress.XamarinForms.Grid

Declaration

[XtraSerializableProperty]
public string DisplayMember { get; set; }

Property Value

Type Description
String

The data source field name.

Example

The example below uses the AsyncItemsSourceProvider to supply suggestions for the AutoCompleteColumn. Use the DisplayMember property to specify the data field that contains values that should be displayed in the drop-down list.

<dxg:DataGridView ItemsSource="{Binding Path=Employees}">
    <dxg:DataGridView.Columns>
        <dxg:AutoCompleteColumn FieldName="JobTitle"
                                DisplayName="Title">
            <dxg:AutoCompleteColumn.ItemsSourceProvider>    
                <dxe:AsyncItemsSourceProvider SuggestionsRequested="SuggestionsRequested"
                                              RequestDelay="500"
                                              CharacterCountThreshold="2"/>
            </dxg:AutoCompleteColumn.ItemsSourceProvider>                
        </dxg:AutoCompleteColumn>
    </dxg:DataGridView.Columns>
</dxg:DataGridView>
See Also