473,657 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2081
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,Titl e FROM Albums UNION SELECT Album_fk,Number ,Title FROM
Titles ORDER BY 1,2 for your datasource...

Patrice

--

"Mike Lerch" <ml************ ****@bigfoot.co m> a écrit dans le message de
news:c7******** *************** *********@4ax.c om...
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
2768
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 `.gnu.linkonce.t._ZN3TNT12CurveTntPlotIdE6handleEi' of FollowCurveWindow.o i.e. of the structur
3
1453
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
8737
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 normally. What's the difference between 'yield break' and 'break' here? Thanks!
3
2026
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 (Autofill), FirstName and LastName. Put some dummy data in table. Start a new VB.Net application, create a new connection to your
5
53611
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
1131
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 class from the dropdown at the top of the IDE, on the left, and then pick from a list of overrides on the right. I've not done much in VS2005 yet, but every time I need to override a method, I go to my dropdown lists and they're not there, so I...
1
1927
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 and off.
4
2120
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 my XHTML the other day, and I came across this "tip of the day" called "Use standard redirects: don't break the back button!" It said, "If you want http://www.example.org/foo to actually display what's at http://www.example.org/bar you should...
11
9698
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
8420
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8516
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.