hi
In a form I dropped a datagridview and a contextmenustrip. When I run the form it displays some info from the db to the dgv. The contextmenustrip has a item called open which opens a new form and also carries some variables to that form. My question is when I right click on a particular row then that row's 1st,2nd,and 3rd cell values should be copied to 3 string vars and are passed to the new form
Vimal KandasamyPosted May 8, 2009, 9:02 AM
This can be done in two steps add code in cell mouse down event
like
String s1,s2,s3;
{{Vimal KandasamyPosted May 9, 2009, 4:18 AM
sachi vasishtaPosted May 8, 2009, 9:31 AM
thanks vimal
now it is working exactly in the I was trying.Vimal I tried with all mouse_click events but I have not tried with cellmouse_click,down,etc evnts. Anyway once again thank you.
Vimal I have also posted a form regerding dgv. I am also trying with all properties of dgv but not getting the required scene. If you find ans please reply for that
thanks
sachi vasishtaPosted May 8, 2009, 1:03 AM
Vimal KandasamyPosted May 7, 2009, 10:03 AM
in open menu add code like below
{