Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / DataGrid / February 2006

Tip: Looking for answers? Try searching our database.

Formatting for display a datagrid with many columns

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
booksnore - 27 Feb 2006 16:01 GMT
I have a spec for a datagrid that the client has provided that includes
40 columns that the client wants to be able to edit.
What is the best way of formatting very long tables for display? I saw a
note posted to say use a dropdownlist to allow users to select
additional fields for view if the table exceeds the display size. I
think that will not be an option for me as the client has stated that
they need to see and edit all fields from the default view. I think they
want something like below where the rows are stacked upon one another so
like...

First record:
row 1: cols 1 to 10
row 2: cols 11 to 20
row 3: cols 21 to 30
row 4: cols 31 to 40
Second record:
row 5: cols 1 to 10
row 6: cols 11 to 20
row 7: cols 21 to 30
row 8: cols 31 to 40

Can this be done within a datagrid?

Joe
Eliyahu Goldin - 27 Feb 2006 16:19 GMT
You can do it with a repeater. Set it up within an html table like this:
<table>
<asp:repeater>
<asp:itemtemplate>
<tr>
<td>bound to column 1</td>
...
<td>bound to column 10</td>
</tr>
<tr>
<td>bound to column 11</td>
...
<td>bound to column 20</td>
</tr>
<tr>
<td>bound to column 21</td>
...
<td>bound to column 30</td>
</tr>
<tr>
<td>bound to column 31</td>
...
<td>bound to column 40</td>
</tr>
</asp:itemtemplate>
</asp:repeater>
</table>

Eliyahu

>I have a spec for a datagrid that the client has provided that includes
> 40 columns that the client wants to be able to edit.
[quoted text clipped - 22 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.