473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Can the ItemHeader repeat for each "section break" in a Repeater?

I have data like this:

Album Song
Led Zeppelin I Good Times Bad Times
Led Zeppelin I Babe I'm Gonna Leave You
Led Zeppelin I You Shook Me
Led Zeppelin I Dazed and Confused
Led Zeppelin II Whole Lotta Love
Led Zeppelin II The Lemon Song
Led Zeppelin II Heartbreaker

Is it possible for a repeater to show the Header each time the album
changes? In other words something like

Led Zeppelin I (Header)
Good Times Bad Times (Item)
Babe I'm Gonna Leave You (Item)
You Shook Me (Item)
Dazed and Confused (Item)
Led Zeppelin II (Header)
Whole Lotta Love (Item)
The Lemon Song (Item)
Heartbreaker (Item)

Any help is appreciated! PS, if the repeater won't do it, is there a
control that will?

Lerch
Nov 18 '05 #1
2 2071
You could have :
- a repeater than handles the album and an inner repeater that handles the
titles...
- or a single repepater with a part you show/hide depending on wether or not
this is a new album.
- or a single repeater with a datasource that unions album titles and titles
- or a custom template class that output the album title when appropriate

3) is probably the simplest. Use just something like :

SELECT Album_pk,0,Title FROM Albums UNION SELECT Album_fk,Number,Title FROM
Titles ORDER BY 1,2 for your datasource...

Patrice

--

"Mike Lerch" <ml****************@bigfoot.com> a écrit dans le message de
news:c7********************************@4ax.com...
I have data like this:

Album Song
Led Zeppelin I Good Times Bad Times
Led Zeppelin I Babe I'm Gonna Leave You
Led Zeppelin I You Shook Me
Led Zeppelin I Dazed and Confused
Led Zeppelin II Whole Lotta Love
Led Zeppelin II The Lemon Song
Led Zeppelin II Heartbreaker

Is it possible for a repeater to show the Header each time the album
changes? In other words something like

Led Zeppelin I (Header)
Good Times Bad Times (Item)
Babe I'm Gonna Leave You (Item)
You Shook Me (Item)
Dazed and Confused (Item)
Led Zeppelin II (Header)
Whole Lotta Love (Item)
The Lemon Song (Item)
Heartbreaker (Item)

Any help is appreciated! PS, if the repeater won't do it, is there a
control that will?

Lerch


Nov 18 '05 #2
On Thu, 4 Mar 2004 14:32:23 +0100, "Patrice Scribe"
<no****@nowhere.com> wrote:
You could have :
- a repeater than handles the album and an inner repeater that handles the
titles...


Thanks for your help! That's the technique I chose to go with,
following some code at
http://support.microsoft.com/default...b;EN-US;306154

Now I just have to figure out if I can actually add and update and
delete stuff using this technique (i.e. this displays my current data
but I'd like to use something similar to, for instance, add comments
on each song or something)

Lerch

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Hartmut Sbosny | last post by:
Hello, I get the linker message `.gnu.linkonce.t._ZN3TNT12CurveTntPlotIdE6handleEi' referenced in section `.rodata' of FollowCurveWindow.o: defined in discarded section...
3
by: Jeff | last post by:
I have 3 pages of data I need printed for each record, however, Access won't allow me to create a 3 page detail section. Is there any way around this limitation? Thanks in advance Jeff
2
by: yyhhjj | last post by:
I created a test program to implement an iterator. First, I used 'yield break' in the iterator, it worked normally. Then, I simply used 'break' in the places of 'yield break', it still worked...
3
by: Dave | last post by:
I've run across a strange error when creating a simple ADO.Net connection in VB.Net 2003 To replicate an error: Create an Access database (2002) with table named "Student" and fields SID...
5
by: theath | last post by:
hi, i'd like to do something like while(x) if(y) break ... end while what is the equivalent of java's break statement in vb.net? i don't want to use a goto :)
4
by: Jason Kendall | last post by:
Why is it that there doesn't appear to be an easy way to select what overridable method you want to override from the IDE as you could in VS2003? Used to, you could select (Overrides) for your...
1
by: QLD_AU | last post by:
I am having trouble when viewing the code behind a form, any events i do are shown, however the Windows Form Designer generated code Section is not shown, Does anyone know how to turn this on...
4
by: Daniel Greene | last post by:
Dear Group, I haven't been on this newsgroup in years. Hello again to village elders Lars Eighner, Alan Flavelle, and Jukka Korpela! :-) What brings me back? I was using the W3C QA to validate...
11
by: O.B. | last post by:
Does C# support anything like PHP's break command that optionally accepts a parameter specifying how many loops to break out of?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.