Home All Groups Group Topic Archive Search About

Combobox refresh after changing displaymember and valuemember

Author
28 Jun 2006 4:31 PM
dchman
I want to set the values for the combobox.displaymember and valuemember at
runtime.  Its seems simple enough, but after changing them in response to a
change in an option group, I can't figure out how to get the combobox to
refresh itself with the new settings.  I've tried the combobox.refresh()
method.

Anyone know how to get the combo box to refresh itself?

thanks
--
dchman

Author
29 Jun 2006 3:33 PM
William Sullivan
Did you try the Invalidate() method? 

Show quote
"dchman" wrote:

> I want to set the values for the combobox.displaymember and valuemember at
> runtime.  Its seems simple enough, but after changing them in response to a
> change in an option group, I can't figure out how to get the combobox to
> refresh itself with the new settings.  I've tried the combobox.refresh()
> method.
>
> Anyone know how to get the combo box to refresh itself?
>
> thanks
> --
> dchman
Author
29 Jun 2006 4:11 PM
dchman
Thanks for the tip.  Much better than my work-around of refilling the
associated table adapter.
--
dchman


Show quote
"William Sullivan" wrote:

> Did you try the Invalidate() method? 
>
> "dchman" wrote:
>
> > I want to set the values for the combobox.displaymember and valuemember at
> > runtime.  Its seems simple enough, but after changing them in response to a
> > change in an option group, I can't figure out how to get the combobox to
> > refresh itself with the new settings.  I've tried the combobox.refresh()
> > method.
> >
> > Anyone know how to get the combo box to refresh itself?
> >
> > thanks
> > --
> > dchman

AddThis Social Bookmark Button