P
Paul
Hi, I have a project configured as follows:
Main form with a tabcontrol with 1 tab page and a panel with some text boxes
in. This form also has some bindingsources dropped onto the form.
When a selection is made the program instantiates a new class which creates
several tabs on the main form each with a datagridview on. As you click on
each tab a datatable is populated and bound to the datagridview. This all
works ok.
I am then trying to bind the data from the datagridview to the relevant
textbox on the main form from my new class. The code executes without error
but no data shows in the textboxes. I have tried performing the databindings
in my new class or the main one but no difference.
If I move all my methods into the main class then the databindings work ok.
I hope this makes sense. Any ideas?
Main form with a tabcontrol with 1 tab page and a panel with some text boxes
in. This form also has some bindingsources dropped onto the form.
When a selection is made the program instantiates a new class which creates
several tabs on the main form each with a datagridview on. As you click on
each tab a datatable is populated and bound to the datagridview. This all
works ok.
I am then trying to bind the data from the datagridview to the relevant
textbox on the main form from my new class. The code executes without error
but no data shows in the textboxes. I have tried performing the databindings
in my new class or the main one but no difference.
If I move all my methods into the main class then the databindings work ok.
I hope this makes sense. Any ideas?