开发者

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

开发者 https://www.devze.com 2023-01-28 08:47 出处:网络
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 se

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

精彩评论

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