获取数据表中的一行数据的方法

string str = dataGridView1.SelectedCells[0].Value.ToString();//在数据表中取到第一列的数据

posted @ 2018-02-28 14:31  念秋竹  阅读(581)  评论(0编辑  收藏  举报