Skip to main content

TreeListBandCollection.SetBandIndex(Int32, TreeListBand) Method

Changes the specified band’s position within the collection.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v24.2.dll

Declaration

public virtual void SetBandIndex(
    int newIndex,
    TreeListBand band
)

Parameters

Name Type Description
newIndex Int32

A new band position within the collection.

band TreeListBand

An object that specifies the band to be moved.

Remarks

The SetBandIndex method moves the specified band to a new position within the collection and updates the indexes of other bands.

If the specified index is less than zero, the target band is moved to the first position within the collection. If the target index is greater than or equal to the number of elements in the collection, the specified band is moved to the end of the collection.

The SetBandIndex method is not in effect if the current collection does not contain the specified band.

See Also