Skip to main content

AutoGeneratingColumnEventArgs Class

Provides data for the DataGridView.AutoGeneratingColumn event.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

NuGet Package: DevExpress.XamarinForms.Grid

Declaration

public class AutoGeneratingColumnEventArgs :
    CancelEventArgs

Remarks

The AutoGeneratingColumnEventArgs objects are automatically created, initialized and passed to the DataGridView.AutoGeneratingColumn event handlers.

Example

This example shows how to use the AutoGeneratingColumn event to modify an auto-generated column at the time it is created, or cancel the generation of a column.

<dxg:DataGridView x:Name="grid" ItemsSource="{Binding Employees}" 
                  AutoGenerateColumnsMode="Auto"
                  AutoGeneratingColumn="Grid_AutoGeneratingColumn">
    <!-- ... -->
</dxg:DataGridView>

Inheritance

Object
EventArgs
CancelEventArgs
AutoGeneratingColumnEventArgs
See Also