Skip to main content
A newer version of this page is available. .
All docs
V22.1

LayoutViewColumnCollection.AddVisible(String, String) Method

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

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v22.1.dll

NuGet Package: DevExpress.Win.Grid

Declaration

public LayoutViewColumn 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 column. This value is assigned to the FieldName property.

caption String

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

Returns

Type Description
LayoutViewColumn

The created column.

See Also