DataGridViewSelectedColumnCollection.Insert(Int32, DataGridViewColumn) Method

Definition

Inserts a column into the collection at the specified position.

public:
 void Insert(int index, System::Windows::Forms::DataGridViewColumn ^ dataGridViewColumn);
public void Insert (int index, System.Windows.Forms.DataGridViewColumn dataGridViewColumn);
member this.Insert : int * System.Windows.Forms.DataGridViewColumn -> unit
Public Sub Insert (index As Integer, dataGridViewColumn As DataGridViewColumn)

Parameters

index
Int32

The zero-based index at which the column should be inserted.

Exceptions

Always thrown.

Remarks

This method is not relevant for this class. You cannot change the DataGridViewSelectedColumnCollection class directly. To insert a column into the DataGridViewSelectedColumnCollection, use the DataGridViewBand.Selected property.

Applies to

See also