A newer version of this page is available. Switch to the current version.

GridBandCollection.Item[String] Property

Gets a band with the specified name.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v18.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