Custom DataSource

  • Thread starter Thread starter FrankVDL
  • Start date Start date
F

FrankVDL

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
 
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
 
Back
Top