DataGrid.CreateColumnSet(PagedDataSource, Boolean) Method

Definition

Creates the set of columns to be used to build up the control hierarchy. When AutoGenerateColumns is true, the columns are created to match the data source and are appended to the set of columns defined in the Columns collection.

protected virtual System.Collections.ArrayList CreateColumnSet(System.Web.UI.WebControls.PagedDataSource dataSource, bool useDataSource);

Parameters

dataSource
PagedDataSource

The data source being used to create the control hierarchy.

useDataSource
Boolean

Whether to use the data source to generate columns automatically or to use saved state.

Returns

An ArrayList containing the effective set of columns in the right order.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1