Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2007

Tip: Looking for answers? Try searching our database.

ListBox not updating when datasource changes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tarscher - 14 Feb 2007 11:03 GMT
Hi all,

I bind a list to a ListBox. Binding works but when I change the list
the data is not updated in the listbox.

Someone knows how to signal the listbox to update when the datasource
changes?

Thanks
Stijn
Shaun C McDonnell - 14 Feb 2007 14:27 GMT
Stijn,

Is this a web app?  Are you calling DataBind on the listbox after you change
the data?

Shaun McDonnell

> Hi all,
>
[quoted text clipped - 6 lines]
> Thanks
> Stijn
Tarscher - 14 Feb 2007 16:14 GMT
Hi all,

no webapp. I found the solution by implementing BindingList I get the
updates now.

On 14 feb, 15:27, "Shaun C McDonnell" <sm-nospammmmm...@eisoft.com>
wrote:
> Stijn,
>
[quoted text clipped - 13 lines]
> > Thanks
> > Stijn
RobinS - 15 Feb 2007 06:35 GMT
If you are doing .Net 2.0, you can use a Binding source between your data
source and the combobox, and this will also fix your problem. The Binding
Source acts as glue between the control and the data source, and handles
updates of the control(s) immediately when the data source is modified.

Robin S.
-----------------------------
> Hi all,
>
[quoted text clipped - 21 lines]
>> > Thanks
>> > Stijn

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.