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 / September 2005

Tip: Looking for answers? Try searching our database.

Custom DataSource

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FrankVDL@gmail.com - 09 Sep 2005 13:16 GMT
Hi,

I'm trying to create my own datasource container :

public class QueryDispatcher : System.ComponentModel.Component,
IBindingList, ITypedList, IListSource, IList<BaseItem> {
 ...
}

The problem is that VS.net (2005 beta) doesn't see it as datasource.
When I put a queryDispatcher component and a grid on a form, the
dropdown box in the Grid.DataSource property stays empty !!

How can I make sure the QueryDispatcher is visible in the propertygrid
?
Did I forget to implement an Interface ?

Kind Regards
Frank Vanderlinden
Jan Bannister - 09 Sep 2005 15:40 GMT
Hi Frank,

The Object Data Source is designed to bind to a Class that has public
properties. Make a class like this and you see it appear in the drop
down. You can then bind the Grid to a List<Thingy> where Thingy is the
name of the class you implemented.

Hope that helps,
Jan

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.