Skip to main content
Tab

GridViewEditDataColumn.CreateColumn(Type) Method

Creates a data column for the specified data type.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public static GridViewEditDataColumn CreateColumn(
    Type dataType
)

Parameters

Name Type Description
dataType Type

A Type descendant that represents the type of data to be displayed by the new column.

Returns

Type Description
GridViewEditDataColumn

A GridViewEditDataColumn descendant that represents the data column for the specified data type.

Remarks

dataType Return Value
null Initializes and returns a new instance of the GridViewDataTextColumn object.
DateTime Initializes and returns a new instance of the GridViewDataDateColumn object.
bool Initializes and returns a new instance of the GridViewDataCheckColumn object.
(Any Other Type) Initializes and returns a new instance of the GridViewDataTextColumn object.
See Also