tangtang615  

前提:把DataGridView的属性SelectionMode(--指示如何选择 DataGridView 的单元格)设置为:FullRowSelect 

1,选中DataGridView中指定的数据行:

(1),选中DataGridView的索引值为i的数据行。

this.dgvTVWallLink.Rows[i].Selected = true;

(2),选中DataGridView的行索引值为i,列索引值为j的数据行.

this.dgvOperList.Rows[i].Cells[j].Selected = true;

posted on 2009-03-06 10:49  tangtang  阅读(259)  评论(0编辑  收藏  举报