Skip to main content

ColumnView.PopulateColumns(Type, PopulateColumnsParameters) Method

Generates columns for the custom code-first data source.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

public virtual void PopulateColumns(
    Type elementType,
    PopulateColumnsParameters populateColumnsParameters = null
)

Parameters

Name Type Description
elementType Type

A Type of the code-first data source for which columns should be generated.

Optional Parameters

Name Type Default Description
populateColumnsParameters DevExpress.XtraGrid.Extensions.PopulateColumnsParameters null

A PopulateColumnsParameters object that stores advanced column generation parameters.

Remarks

A code-first data source is a class that exposes public properties, each representing a related data source field. Using the PopulateColumns method overload, you can pass this class to generate a column layout for the target code-first source.

See Also