P
Paul Louth
Hi, I'm creating my own custom web-control called Table, with a collection
of my own custom 'Column's as a property:
[ToolboxData("<{0}:Table runat=server></{0}:Table>")]
public class Table : System.Web.UI.WebControls.WebControl
{
...
[Bindable(true)]
public ColumnCollection Columns
{
get { return columns; }
set { columns = value; }
}
}
However when I create the Table in the designer, and attempt to add items to
the Columns attribute the attribute just has a value of "(Collection)". It
'appears' to work in the designer, but no actual content is being written in
the HTML view.
So, what's the correct way of attaching collections to controls?
Thanks in advance,
Paul
of my own custom 'Column's as a property:
[ToolboxData("<{0}:Table runat=server></{0}:Table>")]
public class Table : System.Web.UI.WebControls.WebControl
{
...
[Bindable(true)]
public ColumnCollection Columns
{
get { return columns; }
set { columns = value; }
}
}
However when I create the Table in the designer, and attempt to add items to
the Columns attribute the attribute just has a value of "(Collection)". It
'appears' to work in the designer, but no actual content is being written in
the HTML view.
So, what's the correct way of attaching collections to controls?
Thanks in advance,
Paul