Skip to main content

DataControlBase.PopulateColumns() Method

Creates columns for all fields in a bound data source.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

public void PopulateColumns()

Remarks

The PopulateColumns method appends the grid’s GridControl.Columns collection with columns 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 set to true.

Calling the PopulateColumns method raises the DataControlBase.ColumnsPopulated event.

See Also