Skip to main content
All docs
V25.1
  • Tab

    ReadOnlyGridColumnCollection<T>.Item[String] Property

    Returns the column with the specified name, field name or caption.

    Namespace: DevExpress.Web

    Assembly: DevExpress.Web.v25.1.dll

    NuGet Package: DevExpress.Web

    Declaration

    public T this[string ID_FieldName_Caption] { get; }

    Parameters

    Name Type Description
    ID_FieldName_Caption String

    The column’s name, field name or caption.

    Property Value

    Type Description
    T

    A column with the specified name, field name or caption. null (Nothing in Visual Basic) if the column isn’t found.

    Remarks

    The Item property allows you to obtain a column by specifying its name, field name or caption. If the column’s name property matches the ID_FieldName_Caption parameter, it is returned by the Item property.

    If the column isn’t found, a search is performed for a data column whose GridViewDataColumn.FieldName property matches the search parameter. Since multiple columns can be bound to the same data source field, the first found column is returned.

    Finally, if the column isn’t found, the Item property returns the first found column whose Caption property matches the search parameter. Otherwise, the Item property returns null.

    See Also