C
Chris
I think I must be going crazy. All I want to do is add a button to the
bottom of a datagrid which will later run some code for a web based
project. I've created a custom control that inherits from the datagrid
and have added just a single line of code thus;
protected override void Render(HtmlTextWriter output)
{
output.Write(new System.Web.UI.WebControls.Button());
base.Render(output);
}
All looks fine at design time but at runtime I'm getting a cast
exception - what am I missing? Many thanks if you can point out where
I'm going wrong.
bottom of a datagrid which will later run some code for a web based
project. I've created a custom control that inherits from the datagrid
and have added just a single line of code thus;
protected override void Render(HtmlTextWriter output)
{
output.Write(new System.Web.UI.WebControls.Button());
base.Render(output);
}
All looks fine at design time but at runtime I'm getting a cast
exception - what am I missing? Many thanks if you can point out where
I'm going wrong.