Thanks. That's a better solution than the path I was heading down.
[quoted text, click to view] "Wilco Bauwer" wrote:
> You could use aggregration, e.g.: create a composite control which
> contains a datagrid, and add a DataSource property which looks like:
>
> public object DataSource
> {
> get
> {
> this.myDataGrid.EnsureChildControls();
> return this.myDataGrid.DataSource;
> }
> set
> {
> this.myDataGrid.EnsureChildControls();
> this.myDataGrid.DataSource = value;
> }
> }
>
> You should create the datagrid in the CreateChildControls method.
>