获取datagridview 选择行

int rows = dataGridView1.indexrows;//获得选种行的索引
string str = dataGridView1.rows[rows].cells[num].text;//获取第rows行的索引为num列的值 
posted @ 2009-12-02 18:13  ggbbeyou  阅读(351)  评论(0)    收藏  举报