Back to Devexpress

LayoutViewColumnCollection.AddVisible(String, String) Method

windowsforms-devexpress-dot-xtragrid-dot-columns-dot-layoutviewcolumncollection-dot-addvisible-x28-system-dot-string-system-dot-string-x29.md

latest2.2 KB
Original Source

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

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

Declaration

csharp
public LayoutViewColumn AddVisible(
    string fieldName,
    string caption
)
vb
Public Function AddVisible(
    fieldName As String,
    caption As String
) As LayoutViewColumn

Parameters

NameTypeDescription
fieldNameString

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

TypeDescription
LayoutViewColumn

The created column.

|

See Also

Visible

VisibleColumns

LayoutViewColumnCollection Class

LayoutViewColumnCollection Members

DevExpress.XtraGrid.Columns Namespace