Partager via


DataGridViewSelectedCellCollection.Insert(Int32, DataGridViewCell) Méthode

Définition

Insère une cellule dans la 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
Public Sub Insert (index As Integer, dataGridViewCell As DataGridViewCell)

Paramètres

index
Int32

Index auquel dataGridViewCell doit être inséré.

dataGridViewCell
DataGridViewCell

Objet à ajouter au DataGridViewSelectedCellCollection.

Exceptions

Toujours levée.

Remarques

Cette méthode n’est pas pertinente pour cette classe. Vous ne pouvez pas modifier la DataGridViewSelectedCellCollection classe directement. Pour ajouter une cellule au DataGridViewSelectedCellCollection, utilisez la DataGridViewCell.Selected propriété.

S’applique à

Voir aussi