Back to Devexpress

GridBandColumnCollection.IndexOf(BandedGridColumn) Method

windowsforms-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-dot-gridbandcolumncollection-dot-indexof-x28-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-dot-bandedgridcolumn-x29.md

latest2.0 KB
Original Source

GridBandColumnCollection.IndexOf(BandedGridColumn) Method

Returns the position of the specified column within the collection.

Namespace : DevExpress.XtraGrid.Views.BandedGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public virtual int IndexOf(
    BandedGridColumn column
)
vb
Public Overridable Function IndexOf(
    column As BandedGridColumn
) As Integer

Parameters

NameTypeDescription
columnBandedGridColumn

A BandedGridColumn object to locate in the collection.

|

Returns

TypeDescription
Int32

An integer value representing the specified column’s zero-based index within the collection. -1 if the collection doesn’t contain the specified column.

|

See Also

GridBandColumnCollection Class

GridBandColumnCollection Members

DevExpress.XtraGrid.Views.BandedGrid Namespace