开发者

Is it possible to select both treeview node and the row of a datagridview

Actually i will have a form open when i click on a row of datagridview . When i make necessary changes and click on save i would like the select that particular row as selected which i previously i selected as well as i had to make one of the tree node to be get selected too..

Is it possible to select both treeview node and the row of a datagridview

If i cl开发者_C百科ick on the 2nd row i will have a form open if i click on save i would like to select that row again

Is it possible to select both treeview node and the row of a datagridview


Got the answer

  int currRow = 0; currRow = dataGridView1.CurrentRow.Index;
   dataGridView1.ClearSelection();
       dataGridView1.Rows[currRow].Selected = true; 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜