New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

A class representing collection for data key values for the RadGrid. Used in the DataKeyValues property.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class GridDataKeyArray : ICollection, IEnumerable, IStateManager

Inheritance: objectGridDataKeyArray

Implements: ICollectionIEnumerableIStateManager

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public GridDataKeyArray(ArrayList keys)
Parameters:keysArrayList

Properties

Gets the number of elements contained in the colleciton.

C#
public int Count { get; }
Property Value:

The number of elements contained in the collection.

Implements: ICollection.Count

Gets if the collection is read-only and could be changed.

C#
public bool IsReadOnly { get; }

Gets a value indicating whether access to the collection is synchronized (thread safe).

C#
public bool IsSynchronized { get; }
Property Value:

true if access to the collection is synchronized (thread safe); otherwise, false.

Implements: ICollection.IsSynchronized

Gets an object that can be used to synchronize access to the collection.

C#
public object SyncRoot { get; }
Property Value:

An object that can be used to synchronize access to the collection.

Implements: ICollection.SyncRoot

C#
public DataKey this[int index] { get; }
Parameters:indexint

Methods

Copies all the elements of the current collection to the specified one-dimensional Array starting at the specified destination index. The index is specified as a 32-bit integer.

C#
public void CopyTo(DataKey[] array, int index)
Parameters:arrayDataKey[]

The array to be copied.

indexint

The index where to copy the array.

Returns an enumerator that iterates through a collection.

C#
public IEnumerator GetEnumerator()
Returns:

IEnumerator

An IEnumerator object that can be used to iterate through the collection.

Implements: IEnumerable.GetEnumerator()