Rendering DataGrid in a custom control at design time
I have built custom controls that inherit from the HtmlTable control so that
they will render properly at design time. I am using a designer, since for
some reason an Html control without a designer gives ID problems. My
designer is simple:
internal class StandardHtmlControlDesigner : ControlDesigner
public override string GetDesignTimeHtml()
This works very well. Also, when building the inherited controls
themselves, I am using the following directives:
[Designer(typeof(Design.StandardHtmlControlDesigner ), typeof(IDesigner))]
So that it will properly parse and render the children with the custom table
is rendered. This renders every control correctly, EXCEPT the datagrid
control. I want to use the .NET <asp:DataGrid>, but for some reason the
CreateControlHierarchy(false) is never called during the rendering of the
datagrid. The is not affecting the browser output, I just want it to render
at design time properly with the columns filled out like a default DataGrid
control would be (with 5 rows, and "DataBound" rendered in the databound
Can anyone tell me how to hook into the DataGrid control (I'm assuming via
my designer) to tell it to create the non-bound control hierarchy?
|All times are GMT. The time now is 12:08 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.