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 / Windows Forms / WinForm General / January 2005

Tip: Looking for answers? Try searching our database.

Rebinding a control in Windows Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
George Jordanov Ivanov - 13 Jan 2005 11:28 GMT
Hi folks,

I have the following problem. I have a nice-and-tidy ListBox control, which
is bound to another nice-and-tidy strongly typed collection.

But when the collection changes (for example I have added a new item to it
from another location), I want to notify the control to re-bind to its
up-to-date data. How can I do this in Windows Forms?

Thanks in advance.
Regards,
George Jordanov Ivanov

To note, there is such method named DataBind() in ASP.NET for each Web-based
control.
Daniel - 14 Jan 2005 12:20 GMT
Hi,

1. if you know when the collection changes (by event or smth) you can set
ListBox.datasource = null, then set it again to collection

> Hi folks,
>
[quoted text clipped - 11 lines]
> To note, there is such method named DataBind() in ASP.NET for each Web-based
> control.
George Jordanov Ivanov - 17 Jan 2005 07:43 GMT
Hi Daniel,

I tried this approach but I find it more like "hack" instead of clear fix of
the problem. Just for the test, try to have more items in the list box (like
10000 for instance) and you will see a terrible blinking on the UI (cased by
the clearing up and then populating the whole list box again).

Thanks for the suggestion, though.
Regards,
George Jordanov Ivanov

> Hi,
>
[quoted text clipped - 19 lines]
> Web-based
>> control.

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.