c# - How to pass value from one form to other datagrids form -


when click on button "adicionar"(add) opens new form (picture 2)

i got combobox , textbox's filled.

my question is, click on button "confirmar", how can put values - "produto", "preço unitário", "iva" , "quantidade" in 1st picture datagrid?

i don't know how it, if guys can help, i'll appreciate it.

thank :)

it depends upon way doing. if saving data in storage in database or text file or other storage, can data respective resource , can load load in datagridview.

e.g. : dgv.datasource = data source

if saving data in global memory(like public static property hold data), can data global memory , load datasource of datagridview.

if can share code, how doing, can suggest concrete implementation.


Comments