Link to home
Start Free TrialLog in
Avatar of dummie_q
dummie_q

asked on

Display a report in ASP.NET

Hey,

I have a question regarding a problem that I have been facing. I am fetching results from db which is in the following format.

NAME       Address       product
N1      A1            P1
N1      A1            P2
N1      A2            P3
N1      A2            P4
N2      A3            P5 etc..

This needs to be displayed as

N1

A1

P1
P2

A2

P3
P4

N2

A3

P5
            
How can this be done in ASP.NET? I am very sorry about the points..but I am giving everything...

Thanks a lot for the help...


ASKER CERTIFIED SOLUTION
Avatar of nayernaguib
nayernaguib
Flag of Egypt image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dummie_q
dummie_q

ASKER

Thanks a lot Nayer..I will try this method and get back..Do you happen to know if this be done using repeater or datagrid by any chance..

Thanks..
Check out this link:

  http://www.codeproject.com/aspnet/GroupedRepeater.asp

The article shows how you can create a grouping repeater control. Source code is also included.

_______________

  Nayer Naguib
Hey Nayer..
Thanks a lot..I got it working with your idea..I am still not sure how to do paging...will work with the other idea...and will see..

Thanks again