DataGridViewColumnCollection

Wisej.Web.DataGridViewColumnCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (2.5.0.0)

Represents a collection of DataGridViewColumn objects in a DataGridView control.

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

Constructors

Initializes a new instance of the DataGridViewColumnCollection class for the given DataGridView.

Properties

DataGridViewColumn: Returns the column at the given index in the collection.

Throws:

DataGridViewColumn: Returns the column of the given name in the collection.

Throws:

Methods

Adds the given DataGridViewColumn to the collection.

Returns: Int32. The index of the column.

Throws:

Adds a DataGridViewTextBoxColumn with the given column name to the collection.

Returns: Int32. The index of the column.

Throws:

Adds a DataGridViewTextBoxColumn with the given column name and call value type to the collection.

Returns: Int32. The index of the column.

Throws:

Adds a DataGridViewTextBoxColumn with the given column name and column header text to the collection.

Returns: Int32. The index of the column.

Throws:

Adds a DataGridViewTextBoxColumn with the given column name, column header text, and cell value type to the collection.

Returns: Int32. The index of the column.

Throws:

Adds a range of columns to the collection.

Throws:

Clears the collection.

Throws:

Clears the collection and disposes the columns.

Determines whether the collection contains the given DataGridViewColumn.

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

Determines whether the collection contains the given DataGridViewColumn.

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

Copies the items from the collection to the given array.

Returns the number of columns that match the includeFilter .

Returns: Int32. The number of columns that match the filter.

Throws:

Returns the width, in pixels, required to display all of the columns that meet the includeFilter .

Returns: Int32. The width, in pixels, that is necessary to display all of the columns that match the filter.

Throws:

Returns the first DataGridViewColumn in display order that matches the includeFilter and excludeFilter .

Returns: DataGridViewColumn. The first DataGridViewColumn in display order that matches the given filters, or null if no column is found.

Throws:

Returns the last DataGridViewColumn in display order that matches the includeFilter and excludeFilter .

Returns: DataGridViewColumn. The last displayed DataGridViewColumn in display order that matches the specified filters, or null if no column is found.

Throws:

Returns the first DataGridViewColumn after the given column in display order that matches the includeFilter and excludeFilter .

Returns: DataGridViewColumn. The next DataGridViewColumn that matches the filters, or null if no column is found.

Throws:

Returns the last DataGridViewColumn prior to the given column in display order that matches the includeFilter and excludeFilter .

Returns: DataGridViewColumn. The previous column that matches the given filters, or null if no column is found.

Throws:

Returns the index of the given DataGridViewColumn in the collection.

Returns: Int32. The index of the given DataGridViewColumn.

Returns the index of the DataGridViewColumn with the specified name from the collection.

Returns: Int32. The index of the given DataGridViewColumn.

Throws:

Inserts a DataGridViewColumn at the given index in the collection.

Throws:

Removes the specified DataGridViewColumn from the collection.

Throws:

Removes the DataGridViewColumn with the specified name from the collection.

Throws:

Removes the DataGridViewColumn at the given index in the collection.

Throws:

Moves the specified column to the new newIndex .

This method updates both the column's index in the column collection and the display index without firing the ColumnDisplayIndexChanged event.

Events

CollectionChangeEventHandler Fired when the collection changes.

Last updated