Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a better way?
Message
From
08/01/2003 13:35:57
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00739414
Message ID:
00739430
Views:
13
Ahmad,

Bind the textboxes to the DataSet, not to the ComboBox. And then, do what I mentioned before in another thread ... set the BindingContext.Postion in the ComboBox's SelectedIndexChanged event.

~~Bonnie


>Hi All,
>
>My window form has 1 ComboBox for navigation, 2 TextBox Binded to the ComboBox.
>When I add new row to my DataSet using the same TextBox in the form, a new row added (ok), an existing row in the combobox will be changed with the same added value.
>
>I solved that my stoping the databinding when I need to add a new record then re-bindit after data saved.
>
>This way works fine but not practical in another forms has many textbox.
>
>Any body has another idea.
>Thanks in advance.n
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform