Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Repeater Control: How to repeat in rows of x?

Reply
Thread Tools

Repeater Control: How to repeat in rows of x?

 
 
SamIAm
Guest
Posts: n/a
 
      01-05-2004
Hi

I need a repeater control (not datalist) to display a table containing 3
columns of data per row. i.e.

<table>
<tr>
<td>Item 1</td>
<td>Item 2</td>
<td>Item 3</td>
</tr>
<tr>
<td>Item 4</td>
<td>Item 5</td>
<td>Item 6</td>
</tr>
</table>

How can a achieve this using a repeater control?

Thanks,

S


 
Reply With Quote
 
 
 
 
S. Justin Gengo
Guest
Posts: n/a
 
      01-05-2004
SamIAm,

This article may get you started:

http://www.sitepoint.com/article/1014

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche


"SamIAm" <> wrote in message
news:%...
> Hi
>
> I need a repeater control (not datalist) to display a table containing 3
> columns of data per row. i.e.
>
> <table>
> <tr>
> <td>Item 1</td>
> <td>Item 2</td>
> <td>Item 3</td>
> </tr>
> <tr>
> <td>Item 4</td>
> <td>Item 5</td>
> <td>Item 6</td>
> </tr>
> </table>
>
> How can a achieve this using a repeater control?
>
> Thanks,
>
> S
>
>



 
Reply With Quote
 
 
 
 
SamIAm
Guest
Posts: n/a
 
      01-06-2004
Thanks for the reply Justin, but that article only shows you how to get data
out and loop through it displaying 1 column per row at a time. I need to
display more than one column per row.

S



"S. Justin Gengo" <> wrote in message
news:...
> SamIAm,
>
> This article may get you started:
>
> http://www.sitepoint.com/article/1014
>
> --
> Sincerely,
>
> S. Justin Gengo, MCP
> Web Developer / Programmer
>
> Free code library at:
> www.aboutfortunate.com
>
> "Out of chaos comes order."
> Nietzche
>
>
> "SamIAm" <> wrote in message
> news:%...
> > Hi
> >
> > I need a repeater control (not datalist) to display a table containing 3
> > columns of data per row. i.e.
> >
> > <table>
> > <tr>
> > <td>Item 1</td>
> > <td>Item 2</td>
> > <td>Item 3</td>
> > </tr>
> > <tr>
> > <td>Item 4</td>
> > <td>Item 5</td>
> > <td>Item 6</td>
> > </tr>
> > </table>
> >
> > How can a achieve this using a repeater control?
> >
> > Thanks,
> >
> > S
> >
> >

>
>



 
Reply With Quote
 
S. Justin Gengo
Guest
Posts: n/a
 
      01-06-2004
SamIAm,

In that case use of a datagrid might be better.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche


"SamIAm" <> wrote in message
news:...
> Thanks for the reply Justin, but that article only shows you how to get

data
> out and loop through it displaying 1 column per row at a time. I need to
> display more than one column per row.
>
> S
>
>
>
> "S. Justin Gengo" <> wrote in message
> news:...
> > SamIAm,
> >
> > This article may get you started:
> >
> > http://www.sitepoint.com/article/1014
> >
> > --
> > Sincerely,
> >
> > S. Justin Gengo, MCP
> > Web Developer / Programmer
> >
> > Free code library at:
> > www.aboutfortunate.com
> >
> > "Out of chaos comes order."
> > Nietzche
> >
> >
> > "SamIAm" <> wrote in message
> > news:%...
> > > Hi
> > >
> > > I need a repeater control (not datalist) to display a table containing

3
> > > columns of data per row. i.e.
> > >
> > > <table>
> > > <tr>
> > > <td>Item 1</td>
> > > <td>Item 2</td>
> > > <td>Item 3</td>
> > > </tr>
> > > <tr>
> > > <td>Item 4</td>
> > > <td>Item 5</td>
> > > <td>Item 6</td>
> > > </tr>
> > > </table>
> > >
> > > How can a achieve this using a repeater control?
> > >
> > > Thanks,
> > >
> > > S
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
SamIAm
Guest
Posts: n/a
 
      01-06-2004
"I need a repeater control (not datalist) to display a table containing 3
columns of data per row"

"S. Justin Gengo" <> wrote in message
news:...
> SamIAm,
>
> In that case use of a datagrid might be better.
>
> --
> Sincerely,
>
> S. Justin Gengo, MCP
> Web Developer / Programmer
>
> Free code library at:
> www.aboutfortunate.com
>
> "Out of chaos comes order."
> Nietzche
>
>
> "SamIAm" <> wrote in message
> news:...
> > Thanks for the reply Justin, but that article only shows you how to get

> data
> > out and loop through it displaying 1 column per row at a time. I need to
> > display more than one column per row.
> >
> > S
> >
> >
> >
> > "S. Justin Gengo" <> wrote in message
> > news:...
> > > SamIAm,
> > >
> > > This article may get you started:
> > >
> > > http://www.sitepoint.com/article/1014
> > >
> > > --
> > > Sincerely,
> > >
> > > S. Justin Gengo, MCP
> > > Web Developer / Programmer
> > >
> > > Free code library at:
> > > www.aboutfortunate.com
> > >
> > > "Out of chaos comes order."
> > > Nietzche
> > >
> > >
> > > "SamIAm" <> wrote in message
> > > news:%...
> > > > Hi
> > > >
> > > > I need a repeater control (not datalist) to display a table

containing
> 3
> > > > columns of data per row. i.e.
> > > >
> > > > <table>
> > > > <tr>
> > > > <td>Item 1</td>
> > > > <td>Item 2</td>
> > > > <td>Item 3</td>
> > > > </tr>
> > > > <tr>
> > > > <td>Item 4</td>
> > > > <td>Item 5</td>
> > > > <td>Item 6</td>
> > > > </tr>
> > > > </table>
> > > >
> > > > How can a achieve this using a repeater control?
> > > >
> > > > Thanks,
> > > >
> > > > S
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
S. Justin Gengo
Guest
Posts: n/a
 
      01-07-2004
SamIAm,

I'm not certain why you can't use a datagrid but the code for the repeater
would be similar to this:

<Table id="Table1" Width="100%" border="1" CellPadding="5" CellSpacing="0">
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<tr>
<td>
<%# DataBinder.Eval(Container.DataItem,
"FirstColumnData") %>
</td>
<td>
<%# DataBinder.Eval(Container.DataItem,
"SecondColumnData") %>
</td>
<td>
<%# DataBinder.Eval(Container.DataItem,
"ThirdColumnData") %>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</Table>

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche


"SamIAm" <> wrote in message
news:...
> "I need a repeater control (not datalist) to display a table containing 3
> columns of data per row"
>
> "S. Justin Gengo" <> wrote in message
> news:...
> > SamIAm,
> >
> > In that case use of a datagrid might be better.
> >
> > --
> > Sincerely,
> >
> > S. Justin Gengo, MCP
> > Web Developer / Programmer
> >
> > Free code library at:
> > www.aboutfortunate.com
> >
> > "Out of chaos comes order."
> > Nietzche
> >
> >
> > "SamIAm" <> wrote in message
> > news:...
> > > Thanks for the reply Justin, but that article only shows you how to

get
> > data
> > > out and loop through it displaying 1 column per row at a time. I need

to
> > > display more than one column per row.
> > >
> > > S
> > >
> > >
> > >
> > > "S. Justin Gengo" <> wrote in message
> > > news:...
> > > > SamIAm,
> > > >
> > > > This article may get you started:
> > > >
> > > > http://www.sitepoint.com/article/1014
> > > >
> > > > --
> > > > Sincerely,
> > > >
> > > > S. Justin Gengo, MCP
> > > > Web Developer / Programmer
> > > >
> > > > Free code library at:
> > > > www.aboutfortunate.com
> > > >
> > > > "Out of chaos comes order."
> > > > Nietzche
> > > >
> > > >
> > > > "SamIAm" <> wrote in message
> > > > news:%...
> > > > > Hi
> > > > >
> > > > > I need a repeater control (not datalist) to display a table

> containing
> > 3
> > > > > columns of data per row. i.e.
> > > > >
> > > > > <table>
> > > > > <tr>
> > > > > <td>Item 1</td>
> > > > > <td>Item 2</td>
> > > > > <td>Item 3</td>
> > > > > </tr>
> > > > > <tr>
> > > > > <td>Item 4</td>
> > > > > <td>Item 5</td>
> > > > > <td>Item 6</td>
> > > > > </tr>
> > > > > </table>
> > > > >
> > > > > How can a achieve this using a repeater control?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > S
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a Repeater control repeat an .ascx? TJ ASP .Net Web Controls 4 07-19-2006 08:51 PM
convert rows to columns and columns to rows helpful sql ASP .Net 0 05-19-2005 06:03 PM
script for moving rows up and down and traverse thru rows of HTML table Subba Rao via DotNetMonster.com ASP .Net 0 03-19-2005 06:46 AM
Repeat Header every 10 rows eval ASP .Net Datagrid Control 0 11-08-2004 11:14 PM
Can the ItemHeader repeat for each "section break" in a Repeater? Mike Lerch ASP .Net 2 03-04-2004 04:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57