471,092 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Repeater Control and Key Breaks

I have a question regarding the most effective way to implement key breaks
in a repeater control. Consider the following data in a SQL table :

Cat. | Products
Fruits | Oranges
Fruits | Apples
Sweets | Marshmallows
Sweets | Gummies

What I would like to do is display them as follows :

Fruits :
Sweets :

In ASP this would have been fairly simple. I would have used a key
comparison field to check if the category of the current record matches the
category of the previous record. If it doesn't I would just display the
category before displaying the product.

Although I suppose I can still do that in ASP.NET, I would like to do it
using an ASP.NET control. I have successfully been able to display the
products using the repeater control by basically just binding the dataset
from the SQL query to the repeater control, but I'm not sure how to
manipulate the output of the repeater control so it matches the format
descibed above.

Any ideas?
Nov 18 '05 #1
0 788

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by MattB | last post: by
1 post views Thread by olduncleamos | last post: by
7 posts views Thread by charliewest | last post: by
2 posts views Thread by tomh | last post: by
4 posts views Thread by Fred | last post: by

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.