![]() |
|
|
|
#1 |
|
Hello everbody,
I need to display my data like this using asp.net and vb.net Journals issues MailDate ActualDate AAA 1 01/15/04 01/15/04 2 01/16/04 01/16/04 3 01/17/04 01/15/04 BBB 1 01/15/04 01/15/04 2 01/16/04 01/16/04 3 01/17/04 01/15/04 can somebody post suggestions how to proceed with this. Thanks in advance regards, sp =?Utf-8?B?c3A=?= |
|
|
|
|
#2 |
|
Posts: n/a
|
Well, you haven't given us much information about how your data is
organized. My guess is you have a dataset with 2 datatables. One datatable has a JournalId, JournalName, Issues and MailDate column and looks like: 1 AAA 1 01/15/04 2 BBB 1 01/15/04 The other table has an ActualDate, Issue, MailDate and JournalId column; 01/16/04 2 01/16/04 1 01/15/04 3 01/17/04 1 01/16/04 2 01/16/04 2 01/15/04 3 01/17/04 2 You would set up a DataRelationship between your first table's JournalId and your 2nd tables JournalId. You can then use a nested repeater to cleanly bind the two: <asp:repeater id="journals" runat="Server"> <headerTemplate>//SET UP TABLE</headerTemplate> <itemTemplate> <tr> <td><#% DataBinder.Eval(Container.DataItem, "Journal") %></td> <td> </td> <td><#% DataBinder.Eval(Container.DataItem, "Issues") %></td> <td><#% DataBinder.Eval(Container.DataItem, "MailDate") %></td> </tr> <asp:repeater id="subItems" runat="server DataSource='<%# ((DataRowView)Container.DataItem).CreateChildView( "relationshipName")%>'> <tr> <td> </td> <td><#% DataBinder.Eval(Container.DataItem, "ActualDate") %></td> <td><#% DataBinder.Eval(Container.DataItem, "Issues") %></td> <td><#% DataBinder.Eval(Container.DataItem, "MailDate") %></td> </tr> <asp:repeater> </itemtemplate> </asp:repeater> Something like that.. -- MY ASP.Net tutorials http://www.openmymind.net/ "sp" <> wrote in message news:8B42145A-9197-410A-943F-... > Hello everbody, > I need to display my data like this using asp.net and vb.net > Journals issues MailDate > ActualDate > AAA 1 01/15/04 > 01/15/04 > 2 01/16/04 > 01/16/04 > 3 01/17/04 > 01/15/04 > > BBB 1 01/15/04 > 01/15/04 > 2 01/16/04 > 01/16/04 > 3 01/17/04 > 01/15/04 > > can somebody post suggestions how to proceed with this. > > Thanks in advance > > regards, > sp Karl Seguin |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why No One Wins in the High-Def Format War | Ablang | DVD Video | 50 | 11-04-2007 04:19 AM |
| As growth slows, Hollywood faces a DVD standoff. | Allan | DVD Video | 0 | 07-11-2005 02:10 PM |
| High Definition and the future of viewing. | Allan | DVD Video | 3 | 03-09-2005 12:56 AM |
| Format Wars Redux: Blu-ray Disc vs. HD-DVD | Ablang | DVD Video | 2 | 02-20-2005 08:06 AM |
| NYTimes: Next Video Format | robert gray | DVD Video | 12 | 01-01-2004 10:42 AM |