1
Answer

how to place values selected in a data grid of one form into textboxes of another form

sachi vasishta

sachi vasishta

15y
3.1k
1

Hi,

I have a winform that contains a datagridview control in which there are 3 columns.The first one is `username`, second one is `password`, and the third one is `type`(indicates general user or admin)all values are stored in mysql table `usertypes`.

And in second form I have a textbox called user_type and other controls. Now if I  click on a particular row of the data gridview containing from(first form) then the value in 'type' field of that form should be placed into the textbox of this second form  and should be stored in a mysql db table 'profile'. How to achieve this??

Answers (1)