By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,888 Members | 1,504 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,888 IT Pros & Developers. It's quick & easy.

ComboBox and EndCurrentEdit method

P: n/a
Hi NG,

I have a form for input, with textboxes and Comboboxes.
When closing the form with an OK Button the changes are in
the underlying DataTable to be taken over.
I realized this as follows:

CurrencyManager cm =
(CurrencyManager)this.BindingContext[myDataSet,"DataTableName" ];
cm.EndCurrentEdit ();

I have the following problem with the ComboBox:
If I typed a value into the Combobox, this value is moved in the DataSet, by
calling EndCurrentEdit.

But, if I select the value from the ComboBox list, this value is not moved
after exceuting EndCurrentEdit.

Does anybody know why ? Is there another method than EndCurrentEdit
in order to shift contents of the input fields into the DataSet?

Thank you for your help!

Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.