I appologize for the cross-posting, but I received no responses from
the building controls group.
I have a custom control that inherits from a DataGrid control. I have
a property that has an arraylist of strings. I want to add items as a
child tag of the grid. How is the best way to do this. Here is what I
have as of now.
[ToolboxData("<{ 0}:OrdersDataGr id runat=server></{0}:OrdersDataG rid>"),
ParseChildren(t rue)]
public class OrdersDataGrid : System.Web.UI.W ebControls.Data Grid
{
...
private ArrayList dataMethodParam eter = null;
[Category("Data" ),
Editor("System. Windows.Forms.D esign.StringCol lectionEditor,
System.Design", "System.Drawing .Design.UITypeE ditor, System.Drawing" ),
DesignerSeriali zationVisibilit y(DesignerSeria lizationVisibil ity.Content),
PersistenceMode (PersistenceMod e.InnerProperty ),
Description("Pa rameter to Pass to the selected OrdersProvider
Method")]
public ArrayList DataMethodParam eter
{
get{return this.dataMethod Parameter;}
set{this.dataMe thodParameter = value;}
}
...
}
What I would like to happen is when items are added via the
StringCollectio nEditor they are child items of the control
<cc1:OrdersData Grid ... >
<DataMethodPara meters>
<param>xxx</param>
<param>xxx</param>
...
</DataMethodParam ters>