DataGridView的几个基本操作
Steven · 2023-12-30 18:40 · 55 views · ASP.NET
DataGridView的几个基本操作: 1、获得某个(指定的)单元格的值: dataGridView1.Row[i].Cells[j].Value; 2、获得选中的总行数: dataGridView1.SelectedRows.Count; 3、获得当前选中行的索引: dataGridView1.CurrentRow.Index; 4、获得当前选中单元格的值: dataGridView1.Cur
Read more