|
 |
aspx thread: Heading Breaks with Datagrids
Message #1 by "Hugh McLaughlin" <hugh@k...> on Sat, 15 Dec 2001 18:19:18
|
|
Hello everyone and thanks for your help in advance. I am working on an
ASP.Net application that queries a database and returns a recordset sorted
by item type. What I am trying to accomnplish is to have a line break and
new heading each time the item type changes. I may also want to subtotal
at the bottom of each item break. Is there a way to do this with the
datagrid or will I need to do this with another control. If so, which one.
Any help will be greatly appreciated. Thanks.
Message #2 by "Mitch Denny" <mitch.denny@w...> on Mon, 17 Dec 2001 13:24:31 +1100
|
|
Hugh,
You won't be able to do this with a DataGrid, or any of
the other controls. But ASP.NET is extensible so you could
create your own which is composed of multiple DataGrids.
If you want to take this approach, your best bet is the
first read up on control building and get comfortable
with the basics of doing that first - you'll probably
have a few questions along the way.
After that, you'll need to focus on building a control
that works like the DataGrid in terms of its ease of
use but renders the output how you want it.
----------------------------------------
- Mitch Denny
- http://www.warbyte.com
- mitch.denny@w...
- +61 (414) 610-141
-
> -----Original Message-----
> From: Hugh McLaughlin [mailto:hugh@k...]
> Sent: Saturday, 15 December 2001 6:19 PM
> To: ASP+
> Subject: [aspx] Heading Breaks with Datagrids
>
>
> Hello everyone and thanks for your help in advance. I am
> working on an
> ASP.Net application that queries a database and returns a
> recordset sorted
> by item type. What I am trying to accomnplish is to have a
> line break and
> new heading each time the item type changes. I may also want
> to subtotal
> at the bottom of each item break. Is there a way to do this with the
> datagrid or will I need to do this with another control. If
> so, which one.
>
> Any help will be greatly appreciated. Thanks.
>
Message #3 by "Todd Bryant" <Todd.Bryant@n...> on Wed, 19 Dec 2001 13:33:41 -0800
|
|
Hugh,
I agree with Mitch, if you are learning, and not under any time
constraints. If that is not the case, I would grab my data using the
XML control and xmldatareader, and apply an XSL stylesheet with the UI
that you want. This technique works great for me while abstracting my
data from my user interface elements.
Todd Bryant
MCSE,MCSD,MCDBA,MCT
Netdesk Corporation
xxx.xxx.xxxx FAX xxx.xxx.xxxx
e-mail: Todd.Bryant@n...
Get Ready for .NET at http://www.netdesk.com/nettraining
-----Original Message-----
From: Mitch Denny [mailto:mitch.denny@w...]
Sent: Sunday, December 16, 2001 6:25 PM
To: ASP+
Subject: [aspx] RE: Heading Breaks with Datagrids
Hugh,
You won't be able to do this with a DataGrid, or any of
the other controls. But ASP.NET is extensible so you could
create your own which is composed of multiple DataGrids.
If you want to take this approach, your best bet is the
first read up on control building and get comfortable
with the basics of doing that first - you'll probably
have a few questions along the way.
After that, you'll need to focus on building a control
that works like the DataGrid in terms of its ease of
use but renders the output how you want it.
----------------------------------------
- Mitch Denny
- http://www.warbyte.com
- mitch.denny@w...
- +61 (414) 610-141
-
> -----Original Message-----
> From: Hugh McLaughlin [mailto:hugh@k...]
> Sent: Saturday, 15 December 2001 6:19 PM
> To: ASP+
> Subject: [aspx] Heading Breaks with Datagrids
>
>
> Hello everyone and thanks for your help in advance. I am
> working on an
> ASP.Net application that queries a database and returns a
> recordset sorted
> by item type. What I am trying to accomnplish is to have a
> line break and
> new heading each time the item type changes. I may also want
> to subtotal
> at the bottom of each item break. Is there a way to do this with the
> datagrid or will I need to do this with another control. If
> so, which one.
>
> Any help will be greatly appreciated. Thanks.
>
|
|
 |