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 Data Binding / April 2007

Tip: Looking for answers? Try searching our database.

IBindlingList and own control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JB - 11 Apr 2007 21:25 GMT
I have created a class that implements IBindingList, which sucessfully
uses the sort options.  This class works very well and can be bound to
a DataGridView, with column header clicking nicely automatically
sorting the data.

I have created a new control that inherits from ListView.  I would
like to extend ListView such that I can bind to it, i.e.
NewListView.DataSource = new IBindingListClass.  How do I do this?
Should I implement another interface in the NewListView control?

An alternative would be to just create an instance of
IBindingListClass and call the ApplySort method when the user clicks
on the column headers, but I cannot seem to create a
PropertyDescriptor, which is requried by PropertyDescriptor?

Thanks.
JB - 14 Apr 2007 20:46 GMT
BindSource Class does the trick.

> I have created a class that implements IBindingList, which sucessfully
> uses the sort options.  This class works very well and can be bound to
[quoted text clipped - 12 lines]
>
> Thanks.

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.