Back to Devexpress

TreeListColumnCollection.ColumnByFieldName(String) Method

windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistcolumncollection-dot-columnbyfieldname-x28-system-dot-string-x29.md

latest2.3 KB
Original Source

TreeListColumnCollection.ColumnByFieldName(String) Method

Returns a column with the field name specified.

Namespace : DevExpress.XtraTreeList.Columns

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public virtual TreeListColumn ColumnByFieldName(
    string fieldName
)
vb
Public Overridable Function ColumnByFieldName(
    fieldName As String
) As TreeListColumn

Parameters

NameTypeDescription
fieldNameString

A String value that specifies the name of the field to which the column is bound.

|

Returns

TypeDescription
TreeListColumn

A TreeListColumn object which represents the column bound to the specified field. null ( Nothing in Visual Basic) if the collection has no columns bound to the field.

|

Remarks

The ColumnByFieldName method scans the collection starting from the first element and returns the first column found whose TreeListColumn.FieldName property’s value matches the fieldName.

See Also

ColumnByName(String)

TreeListColumnCollection Class

TreeListColumnCollection Members

DevExpress.XtraTreeList.Columns Namespace