It's not who you are underneath, it's what you do that defines you

摘要: 设置DataGridView的属性SelectionMode为FullRowSelect这样就使DataGridView不是选择一个字段,而是选择一整行了设置DataGridView的属性MultiSelect为false这样就使DataGridView不能够选择多行,只能选择一行了想得到某列的值是要判断DataGridView是否有选中的行if (dataGridView1.SelectedCells.Count != 0) { //得到选中行的索引 int intRow = dataGridView1.SelectedCells[0].RowIndex; //得到列的索引 int intC 阅读全文
posted @ 2012-06-28 10:24 金铭杰 阅读(15160) 评论(0) 推荐(0) 编辑

Brick walls are there for a reason :they let us prove how badly we want things