Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AutoGeneratingColumnEventArgs Class

Provides data for the DataGridView.AutoGeneratingColumn event.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

#Declaration

C#
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

System.Object
EventArgs
CancelEventArgs
AutoGeneratingColumnEventArgs
See Also