首页 > 解决方案 > 错误:“EventArgs”不包含“RowIndex”的定义

问题描述

我正在为 GridView 做一个更新按钮,我收到 RowIndex 的这个错误:EventArgs 不包含 RowIndex 的任何定义

string connectionString = Properties.Settings.Default.db;
SqlConnection con = new SqlConnection(connectionString);
id = dataGridView1.Rows[e.RowIndex].Cells["id"].Value.ToString();

我该如何解决?感谢您的任何建议!

标签: c#datagridview

解决方案


推荐阅读