sachi vasishta

sachi vasishta

  • NA
  • 252
  • 0

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

Apr 9 2009 6:55 AM

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)