Skip to main content

MVCxGridViewColumnCollection.Add(String, String, MVCxGridViewColumnType) Method

Adds a new column to the collection and specifies the column’s caption, type and bound field name.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public MVCxGridViewColumn Add(
    string fieldName,
    string caption,
    MVCxGridViewColumnType columnType
)

Parameters

Name Type Description
fieldName String

A field name to which the column is bound.

caption String

A string value that is a column caption.

columnType MVCxGridViewColumnType

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

Returns

Type Description
MVCxGridViewColumn

A MVCxGridViewColumn object that is the newly added column.

See Also