requested recommendation on data presentation

  • Thread starter David Bartosik - MS MVP
  • Start date
D

David Bartosik - MS MVP

I am wanting to display my data in columns horizontally across the page
rather than vertically down the page to avoid scrolling.
in other words rather than have
column 1 column 2

I want
column 1 column 2 column 1 column 2 column 1 column 2

with so many options, datagrid, datalist, repeater, etc., I'm looking for a
recommendation on which control would be the best solution.
thanx.
 
S

Steven Cheng[MSFT]

Hi David,

Thank you for using Microsoft Newsgroup Service. Based on your description,
you want to use some DataBinding Template control to generate a horizental
repeating table ? Also, among those template controls such as DataGrid,
Reapter, DataList.. You are looking for a proper one to perform this task?
Is my understanding correct?

If so, I think since you want to cusomize the repeating sytle and layout,
the repeater control is more proper for this. The Repeater Control is a
very generic shell that gives you complete control over how data is
rendered. It requires that you provide all the HTML layout, formatiing, and
style tags within the templates of the control.
For example:
<asp:Repeater id="rptTest" runat="server">
<HeaderTemplate>
<table width="100%" align="center" border="1">
<tr>
</HeaderTemplate>
<ItemTemplate>
<td>
<table>
<tr>
<td><%# DataBinder.Eval(Container.DataItem,"name") %></td>
<td><%# DataBinder.Eval(Container.DataItem,"gender") %></td>
</tr>
</table>
</td>
</ItemTemplate>
<FooterTemplate>
</tr>
</table>
</FooterTemplate>
</asp:Repeater>

However , if you want the control itself do much more of the work on your
behalf, you may consider using the DataList or DataGrid. Anyway, choose the
one which you feel more comfortable to use. :)

If you have any questions, please feel free to let me know.

Merry Christmas!!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top