Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GridBandCollection.Item[String] Property

Gets a band with the specified name.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

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