This documentation is archived and is not being maintained.

DataGridColumnCollection Members

DataGridColumnCollection overview

Public Constructors

public constructorDataGridColumnCollection Constructor Initializes a new instance of the DataGridColumnCollection class.

Public Properties

public propertyCount Gets the number of columns in the DataGridColumnCollection.
public propertyIsReadOnly Gets a value that indicates whether the columns in the DataGridColumnCollection can be modified.
public propertyIsSynchronized Gets a value indicating whether access to the DataGridColumnCollection is synchronized (thread-safe).
public propertyItem Gets a DataGridColumn derived column object from the DataGridColumnCollection collection at the specified index.

In C#, this property is the indexer for the DataGridColumnCollection class.

public propertySyncRoot Gets the object that can be used to synchronize access to the DataGridColumnCollection.

Public Methods

public methodAdd Appends the specified DataGridColumn derived column object to the end of the DataGridColumnCollection.
public methodAddAt Inserts a DataGridColumn derived column object in the DataGridColumnCollection at the specified index.
public methodClear Removes all DataGridColumn derived column objects from the DataGridColumnCollection.
public methodCopyTo Copies the items from the DataGridColumnCollection to the specified System.Array object, starting at the specified index in the System.Array object.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetEnumerator Returns an System.Collections.IEnumerator interface that contains all DataGridColumn derived column objects in the DataGridColumnCollection.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodIndexOf Returns the index of the specified DataGridColumn derived column object from the DataGridColumnCollection.
public methodRemove Removes the specified DataGridColumn derived column object from the DataGridColumnCollection.
public methodRemoveAt Removes a DataGridColumn derived column object from the DataGridColumnCollection at the specified index.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

DataGridColumnCollection Class | System.Web.UI.WebControls Namespace

Show: