Skip to main content

DataControlBase.AutoGeneratedColumns Event

Occurs after the columns have been automatically generated.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

public event EventHandler AutoGeneratedColumns

Event Data

The AutoGeneratedColumns event's data class is EventArgs.

Remarks

If the grid’s DataControlBase.AutoGenerateColumns option is enabled, binding the grid to a data source automatically generates columns for all data source fields. After all columns have been created and added to the DataControlBase.Columns collection, the grid fires the AutoGeneratedColumns event. Handle this event to specify column settings (e.g., assign column editors, hide individual columns, etc.).

The AutoGeneratedColumns event is not raised if the DataControlBase.AutoGenerateColumns property is set to false.

See Also