H
Henri
Hi,
I'm trying to customize a DataGrid adding custom rows before the endTag
</TABLE>, and also some html before and after the control itself.
So I wrote :
'************************************************************
Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)
writer.Write("html to render before base control")
MyBase.Render(writer)
writer.Write("html to render after base control")
End Sub
'************************************************************
Public Overrides Sub RenderEndTag(ByVal writer As HtmlTextWriter)
writer.Write("html to render before base control's closing tag")
MyBase.RenderEndTag(writer) 'supposed to write </TABLE>
End Sub
But it doesn't work as RenderEndTag si never called by
MyBase.Render(writer).
So what's RenderEndTag() for then if it's not always called by default by
the Render method?
Did I miss something?
How can I write something before DataGrid's </TABLE> then?
Thank for your help
Henri
I'm trying to customize a DataGrid adding custom rows before the endTag
</TABLE>, and also some html before and after the control itself.
So I wrote :
'************************************************************
Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)
writer.Write("html to render before base control")
MyBase.Render(writer)
writer.Write("html to render after base control")
End Sub
'************************************************************
Public Overrides Sub RenderEndTag(ByVal writer As HtmlTextWriter)
writer.Write("html to render before base control's closing tag")
MyBase.RenderEndTag(writer) 'supposed to write </TABLE>
End Sub
But it doesn't work as RenderEndTag si never called by
MyBase.Render(writer).
So what's RenderEndTag() for then if it's not always called by default by
the Render method?
Did I miss something?
How can I write something before DataGrid's </TABLE> then?
Thank for your help
Henri