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..
Main Topics
Browse All TopicsHey,
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...
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Check out this link:
http://www.codeproject.com
The article shows how you can create a grouping repeater control. Source code is also included.
_______________
Nayer Naguib
Business Accounts
Answer for Membership
by: nayernaguibPosted on 2005-07-07 at 14:29:36ID: 14391900
1. Make sure the select command of the data adapter ends with the following clause:
__________ ________
aSet11); .Count; i++) ables[0].R ows[i]["na me"]); ables[0].R ows[i]["ad dress"]); ables[0].R ows[i]["pr oduct"]); i]["addres s"].ToStri ng()==data Set11.Tabl es[0].Rows [i-1]["add ress"].ToS tring()) ables[0].R ows[i]["pr oduct"]); i]["name"] .ToString( )==dataSet 11.Tables[ 0].Rows[i- 1]["name"] .ToString( )) ables[0].R ows[i]["ad dress"]); ables[0].R ows[i]["pr oduct"]); ables[0].R ows[i]["na me"]); ables[0].R ows[i]["ad dress"]); ables[0].R ows[i]["pr oduct"]); __________ ________
order by name, address, product
2. Add the following code in the Page_Load method:
__________________________
int i;
oleDbDataAdapter1.Fill(dat
DataBind();
for (i=0; i<dataSet11.Tables[0].Rows
{
if (i==0)
{
Response.Write(dataSet11.T
Response.Write("<br>");
Response.Write("<br>");
Response.Write(dataSet11.T
Response.Write("<br>");
Response.Write("<br>");
Response.Write(dataSet11.T
Response.Write("<br>");
}
else
{
if (dataSet11.Tables[0].Rows[
{
Response.Write(dataSet11.T
Response.Write("<br>");
}
else if (dataSet11.Tables[0].Rows[
{
Response.Write("<br>");
Response.Write(dataSet11.T
Response.Write("<br>");
Response.Write("<br>");
Response.Write(dataSet11.T
Response.Write("<br>");
}
else
{
Response.Write("<br>");
Response.Write(dataSet11.T
Response.Write("<br>");
Response.Write("<br>");
Response.Write(dataSet11.T
Response.Write("<br>");
Response.Write("<br>");
Response.Write(dataSet11.T
Response.Write("<br>");
}
}
}
__________________________
_______________
Nayer Naguib