DataGridViewSelectedCellCollection.Insert(Int32, DataGridViewCell) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Public Sub Insert (index As Integer, dataGridViewCell As DataGridViewCell)
Parameters
- index
- Int32
The index at which dataGridViewCell
should be inserted.
- dataGridViewCell
- DataGridViewCell
The object to be added to the DataGridViewSelectedCellCollection.
Exceptions
Always thrown.
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
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für