GridIndexCollection
This is a collection of item indexes - each item index is unique within the collection
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class GridIndexCollection : ICollection, IEnumerable, IXmlSerializable
Inheritance: objectGridIndexCollection
Implements:
Inherited Members
Properties
Gets the number of elements contained in the collection.
public int Count { get; }
The number of elements contained in the collection.
Implements:
Gets a boolean value indicationg whether the collection is read only and can me modified.
public bool IsReadOnly { get; }
A boolean value indicationg whether the collection is read only and can me modified.
Gets a value indicating whether access to the collection is synchronized (thread safe).
public bool IsSynchronized { get; }
true if access to the collection is synchronized (thread safe); otherwise, false.
Implements:
Gets an object that can be used to synchronize access to the collection.
public object SyncRoot { get; }
An object that can be used to synchronize access to the collection.
Implements:
Methods
Constructs and add item hierarchical index to the collection of indexes.
public void Add(params int[] indexes)
The hierarchical-index is based on sequential numbers of indxes of items and detail tables. For example index Add(1) will construct the hierarchicalindex for Item 1 in MasterTableView. Add(1, 0, 2) references to the item with index 2 that belongs to a child table 0 of the item 1 in MastertableView.
This method is for internal use only!
Gets a collection of child indexes based on a provided parent index and detail table index.
Gets a collection of child indexes based on a provided parent index.
public GridIndexCollection ChildIndexes(string parentIndex)
The parent index.
Returns:The child indexes collection.
Clears all items from the collection.
public void Clear()
public void CopyTo(Array array, int index)
The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing.
indexintThe zero-based index in array at which
copying begins.
Implements:
Returns an enumerator that iterates through a collection.
public IEnumerator GetEnumerator()
An IEnumerator object that can be used to iterate through the collection.
Implements: