Skip to main content

GridBandCollection.Item[String] Property

Gets a band with the specified name.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

public GridBand this[string name] { get; }

Parameters

Name Type Description
name String

A String value specifying the name of the band to be found.

Property Value

Type Description
GridBand

A GridBand object representing a band with the specified name. null (Nothing in Visual Basic) if no band is found.

Remarks

The method traverses the collection and compares the parameter value with the GridBand.Name property of visited bands. If these values are equal, the method returns the band found.

See Also