2010年6月10日星期四

How to select a row in DataGridView

the C++.Net solution is :
this->dataGridView1->ClearSelection();
this->dataGridView1->SelectionMode = DataGridViewSelectionMode::FullRowSelect;
this->dataGridView1->Rows[i]->
Selected=true;
this->dataGridView1->
CurrentCell=this->dataGridView1->Rows[i]->Cells["ColumnName"];
这几步的作用分别是:
清除当前选择;设定选择模式为整行选取;设定某行为选定;设定当前网格

3 条评论:

匿名 说...

总量控制营销评论,一块大的细节吗?已收到本网站的文章。希望我能有可能得到您自己的网站上的一些东西更多。我会再到。

匿名 说...

真想不到我会评论说伟大的主题,你有没有为自己的代码呢?真的看起来好极了!

Unknown 说...

I am not so sure you can read this reply, I hope you can, because I have some problems on OptSolve++ to ask you. Please contact me, thanks, liuqingcao@gmail.com