A newer version of this page is available. Switch to the current version.

GridColumnCollection.AddVisible(String, String) Method

Adds a new column, binds it to the specified field, assigns the specified caption and makes this column visible.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

public GridColumn AddVisible(
    string fieldName,
    string caption
)

Parameters

Name Type Description
fieldName String

A string that specifies the name of the field to which to bind the created column. This value is assigned to the GridColumn.FieldName property.

caption String

A string that specifies the column’s display caption. This value is assigned to the GridColumn.Caption property.

Returns

Type Description
GridColumn

The created GridColumn object.

Remarks

The column created will be displayed after existing visible columns.

See Also