468,290 Members | 2,066 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,290 developers. It's quick & easy.

combo datasource

Hi

I have a combobox binded to a Datatable
something like

combo.DataSource = dt.DefaultView;
combo.DisplayMember = "descField";
combo.ValueMember = "valueField";

it works fine.
Now if I update the datatable I want the combo to reflect those changes.

I'm trying to rebind the combo doing the same 3 lines but it doesn't work,
(the second time the is run then it does the 1st update)

Any help?
thanks

May 29 '06 #1
1 2635
On Mon, 29 May 2006 09:06:37 -0500, "Alejandro González"
<af******@adinet.com.uy> wrote:
Hi

I have a combobox binded to a Datatable
something like

combo.DataSource = dt.DefaultView;
combo.DisplayMember = "descField";
combo.ValueMember = "valueField";

it works fine.
Now if I update the datatable I want the combo to reflect those changes.

I'm trying to rebind the combo doing the same 3 lines but it doesn't work,
(the second time the is run then it does the 1st update)

Any help?
thanks


Maybe try AcceptChanges()? Or save the changes to the database. I
think that as long as your changes are not accepted that you won't see
them. But i'm not sure of this.
--
Ludwig Stuyck
http://www.coders-lab.be
May 29 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Mike L | last post: by
9 posts views Thread by Mark | last post: by
2 posts views Thread by Jeff Mason | last post: by
6 posts views Thread by Ron L | last post: by
10 posts views Thread by Richard | last post: by
2 posts views Thread by Ausclad | last post: by
3 posts views Thread by =?Utf-8?B?Y2RtdW5veg==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.