Skip to main content

DataControlBase.PopulateColumns() Method

Creates columns/card fields for all fields in a bound data source.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v22.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public void PopulateColumns()


The PopulateColumns method clears the grid’s GridControl.Columns collection, and re-populates it with columns/card fields that correspond to all fields in a data source.

This method is automatically called after the grid has been bound to a data source if its DataControlBase.AutoGenerateColumns property is not set to AutoGenerateColumnsMode.None.

Calling the DataControlBase.PopulateColumns method raises the DataControlBase.ColumnsPopulated event.

To learn more, see Creating Columns and Binding Them to Data Properties.

See Also