B
B. Chernick
I'm doing a web app in VB/Dot Net 2.0. I'm probably a bit rusty and I have
no experience using the repeater control.
I have a user control I've created with multiple properties. I've created a
test page and I've managed to bind the usercontrol to a repeater and display
some data in the following fashion:
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="ObjectDataSource1">
<ItemTemplate >
<uc1:AUserControl runat="server" SomeField='<%# Eval("SomeField") %>' />
</ItemTemplate>
</asp:Repeater>
This works but I get a single line of controls down the left hand of the
window. Also these controls are unevenly grouped by a key field. In other
words, what I would like to see is something like this, a 2 dimensional
formatting:
AAAAAAA
AAA
BBB
CCCCCC
D
and so on.
Is there a way to format a repeater in this style?
(What I would really like is something equivalent to Winform's
FlowLayoutPanel but I would settle for a scheme that permitted a fixed number
of controls per row.)
no experience using the repeater control.
I have a user control I've created with multiple properties. I've created a
test page and I've managed to bind the usercontrol to a repeater and display
some data in the following fashion:
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="ObjectDataSource1">
<ItemTemplate >
<uc1:AUserControl runat="server" SomeField='<%# Eval("SomeField") %>' />
</ItemTemplate>
</asp:Repeater>
This works but I get a single line of controls down the left hand of the
window. Also these controls are unevenly grouped by a key field. In other
words, what I would like to see is something like this, a 2 dimensional
formatting:
AAAAAAA
AAA
BBB
CCCCCC
D
and so on.
Is there a way to format a repeater in this style?
(What I would really like is something equivalent to Winform's
FlowLayoutPanel but I would settle for a scheme that permitted a fixed number
of controls per row.)