海大家。對於連續的每一列,我如何獲得組合框值改變事件上的所有值。它可以在「目標」或「數據類型」列中的組合框中。我覺得像在文本列下面的例子:
string Source = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
string Destination = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
string Similarity = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
string Datatype = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
示例代碼或建議的最佳方式可能是這個高度讚賞。先謝謝你。
對不起。也許我的問題有點模糊。儘管您的建議確實有幫助,但我有興趣知道當組合框更改值時,可以使用哪些事件來獲取連續每列中的所有值。我希望你能給我你的輸入 – MRu
我使用「EditingControlShowing」事件。請檢查編輯的答覆。 – par
謝謝。這對我非常有幫助 – MRu