GridViewDesigner null reference error
- From: Sahil Haslani <sph@xxxxxxxxxxx>
- Date: Mon, 05 Mar 2007 20:16:04 -0800
I have a new control, that basically wraps a UpdatePanel and a GridView - so I can use it as a webpart. I want to expose the Gridview designer for this webpart. Is this possible? I have tried and run into various errors, since my control is not a gridview anymore...
[Designer(typeof(AspGridWebPartDesigner))]
public class AspGridWebPart : WebPart
{
GridView _AspGrid = new GridView();
UpdatePanel _UpdatePanel = new UpdatePanel();
}
public class AspGridWebPartDesigner : System.Web.UI.Design.WebControls.GridViewDesigner
{
public override void Initialize(System.ComponentModel.IComponent component)
{
AspGridWebPart aspGridWebPart = component as AspGridWebPart;
_AspGrid = aspGridWebPart.AspGrid;
_AspGrid.Site = component.Site;
base.Initialize(_AspGrid);
}
___
Newsgroups brought to you courtesy of www.dotnetjohn.com
.
- Prev by Date: intermittant exception at GetObject("$this.Icon")
- Next by Date: Re: How to use WebFormsRootDesigner with DesignSurface?
- Previous by thread: intermittant exception at GetObject("$this.Icon")
- Next by thread: Re: How to use WebFormsRootDesigner with DesignSurface?
- Index(es):