Skip to main content
Version: 3.5

DataGridViewSelectedColumnCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents a collection of DataGridViewColumn objects that are selected in a DataGridView.

public class DataGridViewSelectedColumnCollection : BaseCollection, IList, IList<DataGridViewColumn>, ICollection<DataGridViewColumn>, IEnumerable<DataGridViewColumn>

Properties

Instance memberItem(index)

DataGridViewColumn: Returns the column at the specified index.

Throws:

Methods

Instance memberContains(column)

Determines whether the specified column is contained in the collection.

ParameterTypeDescription
columnDataGridViewColumnA DataGridViewColumn to locate in the DataGridViewSelectedColumnCollection.

Returns: Boolean. true if the column parameter is in the collection; otherwise, false.

Instance memberCopyTo(array, index)

Copies the elements of the collection to the specified array, starting at the specified index.

ParameterTypeDescription
arrayDataGridViewColumn[]The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.
indexInt32The zero-based index in the array at which copying begins.

Throws:

Instance memberIndexOf(column)

Returns the index of the specified element.

ParameterTypeDescription
columnDataGridViewColumnThe DataGridViewColumn to locate in the collection.

Returns: Int32. The zero-based index of the column parameter if it is found in the collection; otherwise, -1.