DataGridViewSelectedCellCollection.Insert(Int32, DataGridViewCell) DataGridViewSelectedCellCollection.Insert(Int32, DataGridViewCell) DataGridViewSelectedCellCollection.Insert(Int32, DataGridViewCell) Method

Definition

Inserts a cell into the collection.

public:
 void Insert(int index, System::Windows::Forms::DataGridViewCell ^ dataGridViewCell);
public void Insert (int index, System.Windows.Forms.DataGridViewCell dataGridViewCell);
member this.Insert : int * System.Windows.Forms.DataGridViewCell -> unit

Parameters

index
Int32 Int32 Int32

The index at which dataGridViewCell should be inserted.

Exceptions

Remarks

This method is not relevant for this class. You cannot change the DataGridViewSelectedCellCollection class directly. To add a cell to the DataGridViewSelectedCellCollection, use the DataGridViewCell.Selected property.

Applies to

See also