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

DataControlBase.PopulateColumns() Method

In This Article

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public void PopulateColumns()

#Remarks

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.

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

See Also