There's no built-in capability to display hierarchical data.
Embedding another data grid to display children records is a good
solution.
http://www.wimdows.net/articles/article.aspx?aid=19

Here's another one which is a little more complex but gives you a nice
expandable view.
http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=398

Sergey

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, September 19, 2002 4:13 PM
> To: dotnet
> Subject: How to set up Grouping in a Datagrid
> 
> 
> Hi all,
> 
> I'm developing a shopping cart site. Products that my client 
> sells belong to multiple brands. I have the datagrid bound to 
> the return result set from a MS SQL server procedure.  The 
> way I want to display the data is in the following format:
>       Brand 1
>             Product 1
>             Product2
>       Brand 2
>             Product 3
>             Product 4
> 
> How do I accomplish this in a datagrid? I tried to use 
> HeaderTemplate but it did not work. Any suggestions are 
> appreciated. Thanks. 
> _________________________________________________________________
> The information transmitted is intended only for the person 
> or entity to which it is addressed and may contain 
> confidential and/or privileged material.  Any review, 
> retransmission, dissemination or other use of, or taking of 
> any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited.   
> If you received
> this in error, please contact the sender and delete the 
> material from any computer.
> 
> 
> ---
> You are currently subscribed to dotnet as: 
> [EMAIL PROTECTED] To unsubscribe send a blank email to 
> %%email.unsub%%
> 
> ---------
> Administrated by 15 Seconds : http://www.15Seconds.com
> List Archives/Search : http://local.15Seconds.com/search 
> Subscription Information : http://www.15seconds.com/listserv.htm
> Advertising Information: http://www.internet.com/mediakit/
> 
> 
> 

---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/


Reply via email to