ColumnView.PopulateColumns(Type, PopulateColumnsParameters) Method
In This Article
Generates columns for the custom code-first data source.
Namespace: DevExpress.XtraGrid.Views.Base
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
public virtual void PopulateColumns(
Type elementType,
PopulateColumnsParameters populateColumnsParameters = null
)
#Parameters
Name | Type | Description |
---|---|---|
element |
Type | A Type of the code-first data source for which columns should be generated. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
populate |
DevExpress. |
null | A Populate |
#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