F
Faizan Ahmed
Hello All,
I have yet another problem,
I've derived a control from Datagrid,
Now in the OnInit() method i Created a button control, added it to a
HtmlTable and added the HtmlTable to my Composite control's Control
collection.
The heirarchy is something like this
CustomControl C
HtmlTable T
Button B
i.e.
H.Controls.Add(B)
C.Controls.Add(T)
The render method of my control is as follows
Protected Overrides Sub Render(ByVal output As System.Web.UI.HtmlTextWriter)
MyBase.Render(output)
End Sub
This statement gives an error in DataGrid.PrepareControlHierarchy() method.
If i remove HtmlTable from the control collection of my control then it
works fine, but then the button control in the table does not raise any
events.
Can any one help??Mr. Saunders?
Thanks in advance people,
Best Regards
I have yet another problem,
I've derived a control from Datagrid,
Now in the OnInit() method i Created a button control, added it to a
HtmlTable and added the HtmlTable to my Composite control's Control
collection.
The heirarchy is something like this
CustomControl C
HtmlTable T
Button B
i.e.
H.Controls.Add(B)
C.Controls.Add(T)
The render method of my control is as follows
Protected Overrides Sub Render(ByVal output As System.Web.UI.HtmlTextWriter)
MyBase.Render(output)
End Sub
This statement gives an error in DataGrid.PrepareControlHierarchy() method.
If i remove HtmlTable from the control collection of my control then it
works fine, but then the button control in the table does not raise any
events.
Can any one help??Mr. Saunders?
Thanks in advance people,
Best Regards