I need to display something such as below.
Type A
- Type A Item 1
- Type A Item 2
- Type A Item 3
Type B
- Type B Item 1
- Type B Item 2
- Type B Item 3
Type C
- Type C Item 1
- Type C Item 2
- Type C Item 3
All of the data comes from a dataset with columns 'Type' and 'ItemName'. Now an easy solution would be to create a repeater for each 'Type' and filter the data set by each 'Type'. However, I would like to just use one repeater and the problem with that is I need some way to recognize when each new section has a header.
<div>[Header][Item]</div>
[Header] = <b>Type A</b><br />
[Item] = Type A Item 1
So only the first item of each Type gets a header item and all others are set to an empty string.
Does anyone know any tricks that could help?