日期:2014-05-20  浏览次数:21034 次

请问如何让datagridview初始选中的不是Rows[0],Cells[0]那个cell啊???
我是想让他初始焦点落在Rows[1].Cells[1]上

我这样做了

                                DgvStat.Rows[0].Cells[0].Selected   =false;
                                DgvStat.Rows[1].Cells[1].Selected=true;
                                DgvStat.Rows[1].Cells[1]   =   true;

但是焦点好像落的不对!!!

谢谢啊!!!

------解决方案--------------------
DataGridView.CurrentCell = powerlist_DataGridView[1,1];//第一个参数是列,第二个是行
DataGridView.CurrentCell.Selected = true;
------解决方案--------------------
那个是我的DataGridView的name,忘了去掉了。哈哈,把你的分分给我吧!我就会解决你这个问题。