The DataKeyCollection class contains a read-only
collection of primary field key names as strings. This class is used
by the BaseDataList.DataKeys property to
facillitate editing (for example, you can use a unique ID for your
key field and use it to build SQL statements when you need to update
a record in response to a user edit operation). You must specify the
data key you want to use in the
BaseDataList.DataKeyField property before you bind
the data list.
public sealed class DataKeyCollection : ICollection, IEnumerable {
// Public Constructors
public DataKeyCollection(System.Collections.ArrayList keys);
// Public Instance Properties
public int Count{get; } // implements ICollection
public bool IsReadOnly{get; }
public bool IsSynchronized{get; } // implements ICollection
public object SyncRoot{get; } // implements ICollection
public object this[int index]{get; }
// Public Instance Methods
public void CopyTo(Array array, int index); // implements ICollection
public IEnumerator GetEnumerator( ); // implements IEnumerable
}