Exposing an internal datasource in the designer

Exposing an internal datasource in the designer

Post by Art » Sun, 11 Jan 2004 00:24:17


I've created a Custom control that inherits from the
DataGrid class. My control contains collections that I
want to appear in the DataSource property dropdown at
design time. Once I've selected the DataSource, I want
to be able to set the columns of my control from the
collection through the property builder.

I've spent ages trying to superclass DataGridDesigner but
can't work out what to do or whether this is the correct
approach.

Has anyone help me out?

Thanks


Art
 
 
 

Exposing an internal datasource in the designer

Post by Alessandro » Sun, 11 Jan 2004 00:26:21

hi Art,
All you need to know is there on this article.
http://www.yqcomputer.com/

 
 
 

Exposing an internal datasource in the designer

Post by Art » Wed, 14 Jan 2004 19:21:33

Thanks Alessandro,

That's a useful article, but it doesn't answer my
problem. Beause I'm superclassing the datagrid, the
DataGridDesigner implements all the design time
functionality required for datasources on the page, but
my DataSource is in my control not on the page. It is
this internal datasource that I want to expose to the
Designer.

Cheers

Art


asp
message

but
correct