Skip to main content
All docs
V20.2

AutoCompleteColumn.TextChanged Event

Fires when text in a cell changes.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

NuGet Package: DevExpress.XamarinForms.Grid

Declaration

public event EventHandler<AutoCompleteColumnTextChangedEventArgs> TextChanged

Event Data

The TextChanged event's data class is AutoCompleteColumnTextChangedEventArgs. The following properties provide information specific to this event:

Property Description
AutoCompleteEdit Gets the cell’s editor.
Reason Gets a value that specifies how the text in the AutoCompleteColumn was changed.

Example

The example below handles the TextChanged event to supply suggestions for the AutoCompleteColumn. Use the AutoCompleteEdit event argument to obtain the cell’s editor.

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:dxg="http://schemas.devexpress.com/xamarin/2014/forms/datagrid">
    <ContentPage.Content>
        <dxg:DataGridView ItemsSource="{Binding Path=Employees}">
            <dxg:DataGridView.Columns>
                <dxg:AutoCompleteColumn FieldName="JobTitle"
                                        LoadingProgressMode="Manual"
                                        TextChanged="AutoCompleteColumn_TextChanged">                
                </dxg:AutoCompleteColumn>
            </dxg:DataGridView.Columns>
        </dxg:DataGridView>
    </ContentPage.Content>
</ContentPage>
See Also