how to copy/transfer values from form2 datagridview to form1 datagridview in C#..?

后端 未结 4 1016
孤街浪徒
孤街浪徒 2021-01-25 03:39

can anyone do help..?

i really need help on this, here i have two forms [form1 & form2]. I have created datagridview(DGV) in each forms. Now i need to transfer/copy

4条回答
  •  花落未央
    2021-01-25 04:18

    You can simply declare the dataset/datatable which binds your form1 grid as a public and access it in form2. Via that datatable or dataset you can again bind grid on form2.

    Or you can send dataset or datatable from form1 to form2(possibly through modular function) and then bind the grid.

    This is the simplest way.

提交回复
热议问题