[英]WinForms dataGridView event handler before row selection changes
我想在單擊另一行時保存我的 dataGridView,但問題是由於行已更改,數據被保存在錯誤的行中。 請幫忙。
private void dgvDesign_RowLeave(object sender, DataGridViewCellEventArgs e)
{
MsgBox(dgvDesign.Rows(e.RowIndex).Cells("column1").Value);
}
當您單擊網格時,它將顯示先前單擊的行 rowindex 值。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.