DataGridViewSelectedColumnCollection.Insert(Int32, DataGridViewColumn) 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 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.
- dataGridViewColumn
- DataGridViewColumn
The DataGridViewColumn to insert into the DataGridViewSelectedColumnCollection.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應