MVCxGridViewColumnCollection.Add(String, MVCxGridViewColumnType) Method

Adds a new column to the collection and specifies the column's type and bound field name.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.2.dll

Declaration

public MVCxGridViewColumn Add(
    string fieldName,
    MVCxGridViewColumnType columnType
)
Public Function Add(
    fieldName As String,
    columnType As MVCxGridViewColumnType
) As MVCxGridViewColumn

Parameters

Name Type Description
fieldName String

A field name to which the column is bound.

columnType MVCxGridViewColumnType

One of the MVCxGridViewColumnType enumeration values that is a column type.

Returns

Type Description
MVCxGridViewColumn

A MVCxGridViewColumn object that is the newly added column.

See Also