Skip to main content

CollectionItem.Index Property

Gets or sets the item’s index within the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web


public virtual int Index { get; set; }

Property Value

Type Description

An integer value representing the zero-based index of the item within the collection.


The value of this property is the current position of the item within the collection to which it belongs. You can use this property to reposition an item to a different location within its collection.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Index property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also