Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#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