📌  相关文章
📜  c# datagridview 获取选定的行值 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:17.129000             🧑  作者: Mango

代码示例3
int rowindex = dataGridView1.CurrentCell.RowIndex;
int columnindex = dataGridView1.CurrentCell.ColumnIndex; 

dataGridView1.Rows[rowindex].Cells[columnindex].Value.ToString();