c# - 错误:“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();
我该如何解决?感谢您的任何建议!
解决方案
推荐阅读
- python - 如何在 Python 中添加类属性?
- c++ - 在 C++ 中扩展枚举的模式
- javascript - asp.net,单击buttonlink在一次javascript函数调用后停止在firefox中工作
- python-3.x - 在线 ide 运行时错误(NZEC) - python 3 on
- reactjs - 如何在表格中的按钮单击事件上设置状态
- javascript - 无法获取数据列表的选定值
- mongodb-replica-set - 失败,服务器最小和最大线版本不兼容 (6,6) 与客户端最小线版本 (0,5)",
- hadoop - Fedora 29上安装和设置hadoop
- excel - 如何优化配方性能?
- c - 如何在linux上设置串口中断?