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

后端 未结 4 1010
孤街浪徒
孤街浪徒 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:40

    Declare a public BindingList in Form 2 and write it from Form 1. If the datagridview in Form 1 is bound to the bindingList, the the data will automatically refresh. See this to view how to bind a datagridview to a bindingList.

提交回复
热议问题