UserControl with collections

L

Lukas Kurka

Hi,

I would like to create UserControl which would have collection like Columns
in GridView.
Something like this:
<uc1:MyUserControl ID="MyUserControl1" runat="server">
<columns>
</columns>
</uc1:MyUserControl>

What do i have to define in MyUserControl.ascx.cs?

Thanks Lukas
 
M

Mark Rae

I would like to create UserControl which would have collection like
Columns in GridView.
Something like this:
<uc1:MyUserControl ID="MyUserControl1" runat="server">
<columns>
</columns>
</uc1:MyUserControl>

What do i have to define in MyUserControl.ascx.cs?

Why not just use an <asp:Table>?

<uc1:MyUserControl ID="MyUserControl1" runat="server">
<asp:Table ID="tblColumns" runat="server">
</asp:Table>
</uc1:MyUserControl>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top