DataGridViewColumnCollection
Wisej.Web.DataGridViewColumnCollection
Last updated
Was this helpful?
Wisej.Web.DataGridViewColumnCollection
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.2.0.0)
Represents a collection of objects in a control.
Initializes a new instance of the class for the given .
dataGrid
: Returns the column at the given index in the collection.
Throws:
Throws:
column
Throws:
name
The name by which the column will be referred.
Throws:
name
The name by which the column will be referred.
valueType
Throws:
name
The name by which the column will be referred.
caption
The text for the column's header.
Throws:
name
The name by which the column will be referred.
caption
The text for the column's header.
valueType
Throws:
Adds a range of columns to the collection.
newColumns
Throws:
Clears the collection.
Throws:
Clears the collection and disposes the columns.
dispose
column
name
The name of the column to look for.
Copies the items from the collection to the given array.
array
index
The index of the destination array at which to start copying.
Returns the number of columns that match the includeFilter .
includeFilter
Throws:
Returns the width, in pixels, required to display all of the columns that meet the includeFilter .
includeFilter
Throws:
includeFilter
excludeFilter
Throws:
includeFilter
excludeFilter
Throws:
startColumn
The column from which to start searching for the next column.
includeFilter
excludeFilter
Throws:
startColumn
The column from which to start searching for the previous column.
includeFilter
excludeFilter
Throws:
column
name
The name of the column to find.
Throws:
index
The zero-based index at which to insert the given column.
column
Throws:
column
The column to delete.
Throws:
name
The name of the column to delete.
Throws:
index
The index of the column to delete.
Throws:
Moves the specified column to the new newIndex .
column
Column to move to the new newIndex .
newIndex
New index and display index of the column .
The that created this collection.
index is less than zero or greater than the number of columns in the collection minus one.
: Returns the column of the given name in the collection.
name is null.
Adds the given to the collection.
The to add.
Returns: . The index of the column.
column is null.
The associated control is performing one of the following actions that temporarily prevents new columns from being added: - Selecting all cells in the control. - Clearing the selection.Updating column property values. Or this method is being called from a handler for one of the following events: - - - - - - - -
Adds a with the given column name to the collection.
Returns: . The index of the column.
The associated control is performing one of the following actions that temporarily prevents new columns from being added: - Selecting all cells in the control. - Clearing the selection.Updating column property values. Or this method is being called from a handler for one of the following events: - - - - - - - -
Adds a with the given column name and call value type to the collection.
The of the values in the cells.
Returns: . The index of the column.
The associated control is performing one of the following actions that temporarily prevents new columns from being added: - Selecting all cells in the control. - Clearing the selection.Updating column property values. Or this method is being called from a handler for one of the following events: - - - - - - - -
Adds a with the given column name and column header text to the collection.
Returns: . The index of the column.
The associated control is performing one of the following actions that temporarily prevents new columns from being added: - Selecting all cells in the control. - Clearing the selection.Updating column property values. Or this method is being called from a handler for one of the following events: - - - - - - - -
Adds a with the given column name, column header text, and cell value type to the collection.
The of the values in the cells.
Returns: . The index of the column.
The associated control is performing one of the following actions that temporarily prevents new columns from being added: - Selecting all cells in the control. - Clearing the selection.Updating column property values. Or this method is being called from a handler for one of the following events: - - - - - - - -
An array of objects to add.
newColumns is null.
The associated control is performing one of the following actions that temporarily prevents new columns from being added: - Selecting all cells in the control. - Clearing the selection.Updating column property values. Or this method is being called from a handler for one of the following events: - - - - - - - -
The associated control is performing one of the following actions that temporarily prevents new columns from being added: - Selecting all cells in the control. - Clearing the selection.Updating column property values. Or this method is being called from a handler for one of the following events: - - - - - - - -
Determines whether the collection contains the given .
The to look for.
Returns: . true if the given column is in the collection; otherwise, false.
Determines whether the collection contains the given .
Returns: . true if the given column is in the collection; otherwise, false.
The destination array.
A combination of the values for inclusion.
Returns: . The number of columns that match the filter.
includeFilter is not a valid combination of values.
A combination of the values for inclusion.
Returns: . The width, in pixels, that is necessary to display all of the columns that match the filter.
includeFilter is not a valid combination of values.
Returns the first in display order that matches the includeFilter and excludeFilter .
A combination of the values for inclusion.
A combination of the values for exclusion.
Returns: . The first in display order that matches the given filters, or null if no column is found.
At least one of the filter values is not a valid combination of values.
Returns the last in display order that matches the includeFilter and excludeFilter .
A combination of the values for inclusion.
A combination of the values for exclusion.
Returns: . The last displayed in display order that matches the specified filters, or null if no column is found.
At least one of the filter values is not a valid combination of values.
Returns the first after the given column in display order that matches the includeFilter and excludeFilter .
A combination of the values for inclusion.
A combination of the values for exclusion.
Returns: . The next that matches the filters, or null if no column is found.
startColumn is null.
At least one of the filter values is not a valid combination of values.
Returns the last prior to the given column in display order that matches the includeFilter and excludeFilter .
A combination of the values for inclusion.
A combination of the values for exclusion.
Returns: . The previous column that matches the given filters, or null if no column is found.
startColumn is null.
At least one of the filter values is not a valid combination of values.
Returns the index of the given in the collection.
The to return the index of.
Returns: . The index of the given .
Returns the index of the with the specified name from the collection.
Returns: . The index of the given .
name is null.
Inserts a at the given index in the collection.
The to insert.
column is null.
The associated control is performing one of the following actions that temporarily prevents new columns from being added:Selecting all cells in the control.Clearing the selection.Updating column property values; or this method is being called from a handler for one of the following events: or column already belongs to a control; or the column property value is and the property value is or . Use the control and methods to temporarily set conflicting property values; or the column property value is and the property value is false; or column has an property value of and a property value of true; or column has and property values that would display it among a set of adjacent columns with the opposite property value; or the control contains at least one row and column has a property value of null.
Removes the specified from the collection.
column is not in the collection.
column is null.
The associated control is performing one of the following actions that temporarily prevents new columns from being added:Selecting all cells in the control.Clearing the selection.Updating column property values; or this method is being called from a handler for one of the following events:
Removes the with the specified name from the collection.
name does not match the name of any column in the collection.
name is null.
The associated control is performing one of the following actions that temporarily prevents new columns from being added:Selecting all cells in the control.Clearing the selection.Updating column property values; or this method is being called from a handler for one of the following events:
Removes the at the given index in the collection.
index is less than zero or greater than the number of columns in the control minus one.
The associated control is performing one of the following actions that temporarily prevents new columns from being added: - Selecting all cells in the control. - Clearing the selection.Updating column property values. Or this method is being called from a handler for one of the following events: - - - - - - - -
This method updates both the column's index in the column collection and the display index without firing the event.
Fired when the collection changes.