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 / Design Time / February 2005

Tip: Looking for answers? Try searching our database.

Overloaded Items Collection in ListView - Designer Display not Refreshing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Camel - 13 Feb 2005 12:51 GMT
Hi,

Working with the code at :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/v
bnet08262002.asp


I have shadowed the Items collection with my own class. When a
DataListViewItem (inherited from ListViewItem) is added to the
collection it is also added to the base.Items collection - essentially
acting as a class filter.

The thing is, when items are added via the Visual Studio (2003)
designer, the DataListView control is not immediately updated with the
changes. Compiling causes the display to update. Considering I'm
adding items to the original Items collection behind the scenes,
shouldn't my class behave like its ancestor and update the VS designer
display on-the-fly?

Regards,

Camel
joeycalisay - 14 Feb 2005 09:09 GMT
Probably, this has something to do with the usual unbroadcasted change of
properties.  How are you modifying the collections and where?  Try calling
the RaiseComponentChanged and RaiseComponentChanging methods inherited from
ComponentDesigner class to notify IComponentChange designer service.

Signature

Joey Calisay
http://spaces.msn.com/members/joeycalisay/

> Hi,
>
> Working with the code at :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/v
bnet08262002.asp


> I have shadowed the Items collection with my own class. When a
> DataListViewItem (inherited from ListViewItem) is added to the
[quoted text clipped - 11 lines]
>
> Camel

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.