Skip to main content
A newer version of this page is available. .

DataControlBase.PopulateColumns() Method

Creates columns for all fields in a bound data source.

Namespace: DevExpress.UI.Xaml.Grid

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

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