AutoCompleteColumn.DisplayMember Property
Gets or sets the name of a data source field that contains values for the drop-down list. This is a bindable property.
Namespace: DevExpress.Maui.DataGrid
Assembly: DevExpress.Maui.DataGrid.dll
NuGet Package: DevExpress.Maui.DataGrid
Declaration
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