How to transport datagridview information to a textbox in another form? [duplicate]

0

I have the following question in my application. I have form1 and in this form1 I have two textbox, txt_cod.text and txt_fornec.text and a search button, when I click the search button on this form1, I call form2 which brings me a populated datagridview with two columns, the column supplier_codes and name of Supplier.

Now what do I need, when the user double-clicks the row in the datagridview, it carries information from the selected row to the form1 within its specified, ex. column cod_provider within txt_cod.text and column provider name within form1's txt_fornec.text.

How to do this?

    
asked by anonymous 01.08.2017 / 13:41

0 answers