Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a better way?
Message
From
08/01/2003 14:02:50
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00739414
Message ID:
00739449
Views:
15
OK, well, I don't know what you're Adding, but if you're getting it to work ok, then that's good.

~~Bonnie


>Thanks Bonnie :))
>
>Yes, I tryed that, I don't know how I didn't see the .AddNew !!
>It's there, I had to use the BindingContext(myDS, "Bank").AddNew().
>
>
>
>
>>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
Reply
Map
View

Click here to load this message in the networking platform