Thanks for the reply. I'll respond to your questions below
You summarised the problem correctly
Yes I'm using VS.NET 2003(.NET Framework v1.1)
The datatable only has one row so its a bit tricky to navigate :-). The form allows users to update options, and all these options are pulled from a single row in the database. I am calling EndCurrentEdit() but I will check that I have the specified the correct datasource and datamember. To be honest I only mentioned this because I wondered if the problems were related. If I can get data showing up on the other tabpages I think I'll be able to get the changes working on my own. I will test with additional rows and play around with EndCurrentEdit() and let you know
Each tabpage has several comboboxes on it. Each combobox binds its Text property to one column of the one table that is in the dataset. Binding is done at design time and is done the same way for each combobox regardless of which tabpage it is on. The comboboxes all have DataSource, DisplayMember and ValueMember properties set to a different dataset that holds the list of valid options. This dataset has one table for each of the comboboxes. This binds correctly and I can select values from the lists, but they do not see to bind back to the first dataset
I don't have the code with me here, but will try to send some snippets in the next few hours
Let me know if you have further questions and I'll try to reply at the same time
Scott
----- \"Ying-Shen Yu[MSFT]\" wrote: ----
Hi Scott
Thanks for posting in the commuinty
From my understanding now, you have two issues when using databinding on a
TabControl.
1. After modifing the data in the first page, GetChanges is still return
null when you attempting to update
2. no data is populated into other tabpages, although the dataset is not
empty
If my understandiing is now correct, please let me know
Before dealing with these issues, I'd like to confirm the version of VS.NET
you are using now. It's VS.NET 2003(.NET Framework v1.1) right
For the first issue, I'd like to know if your have tried changing the
navigating to next/previous row before calling the GetChanges method? If
the problem could be resolved by navigating to the next row, I suggest you
call
BindingContext[datasource, datamember].EndCurrentEdit() method before
calling GetChanges(), since it will force ending the "edit mode"on the
current row. You may get the datasouce and datamember from e.g
textBox1.DataBindings["Text"].DataSource
textBox1.DataBindings["Text"].BindingMemberInfo.BindingField
For the second issue, for now I can't think of what might cause this
problem, I tried putting a datagrid on the second tab page and bound the
the dataset, datatable at design-time, and it works fine in my test
program. So could you let me know me some more information on this issue,
such as how did you bind the controls with the underlying datasources? When
did you set the data binding ,in design time or in run time? Also , it
would be helpful to post some code snippet related to this issue. I'm happy
to take a look at it to see if I could figure out something
Thanks
Best regards,
Ying-Shen Yu [MSFT
Microsoft community Suppor
Get Secure! -
www.microsoft.com/securit This posting is provided "AS IS" with no warranties and confers no rights
This mail should not be replied directly, please remove the word "online"
before sending mail