I have a server control inherited from CompositeControl. It has a grid and I want to set the grid's data source property from the Property Window. The datasource is one of the SqlDataSources on a page.
0f I use a syntax like;
public virtual SqlDataSource DataSource
ViewState["DataSource"] = value;
I can set the DataSource but got that error at design time;
"Cannot create an object of type 'System.Web.UI.WebControls.SqlDataSource' from its string representation 'SqlDataSource1' for the 'Database' property"
I'm using ASP.Net with C# if necessary.