Updating the datagridview in form1 with changes in form2?

1) write a databind method that accepts a product_id parameter to get data in form 1 2) Before form2. Close, intialize form 1 class, and call the method by passing the product_id you just updated and open form1.

In Form1 create a BindingSource in Form1 use this a the Datasource for the Grid in Form1. Pass the same Binding source to Form2. Use this as the Datasource for your Grid in Form2.

The changes will be seamless.

How do I any syntax pls.. – pratapchandra Aug 19 at 16:13 I don't have any datagridview in form 2 .... for specifying bindingsource in form2... – pratapchandra Aug 19 at 16:16 Sorry, I misunderstood that you have another Grid in Form2. – Arun Aug 19 at 16:30 You might want to use the BindingSource from Form1 to pass to Form2.In Form2, use the BindingSource. Current - this will give you the current row that you have selected in Form1's Grid.

You can use this to Bind to the individual UI elements in Form2 in Form2's Load Event. – Arun Aug 19 at 16:32 Syntax that you might want to use in Form2 would be: .DataBindings. Add("Text", , ""); – Arun Aug 19 at 16:34.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions