Skip to main content

GridBandCollection.Item[String] Property

Gets a band with the specified name.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v24.1.dll

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

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