private void dataGridView1_SelectionChanged(object sender, EventArgs e)
{
int n = dataGridView1.SelectedRows.Count;
}
我像你可能搞错了世游Select Cells和Select Rows.
在程序运行是,搜昌销你点击cell,是选迅晌中了单个的cell.而点击表格左边的灰色选中一行,才是select rows
this.dataGridView1.SelectedRows[0].Cells[1].Value.ToString();\茄枝局\/\\/获颤让取选中行的第一个单元格搭喊的值\r\n后面就是依次类推了,我就不写啦