By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,892 Members | 1,238 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,892 IT Pros & Developers. It's quick & easy.

Data Grid Format

P: n/a
Does anyone have an example of how to format VS 2003 Data Grid that looks like the example below?

I want the data to be grouped by the Date Field and display one date for each group of dates and the date to be the heading for each group.

------------------------------------------------------
| | Consignee | Location | MU |
------------------------------------------------------
| February 21, 2005 |
------------------------------------------------------
| | CITY FOREST CORP | LADYSMITH ,WI | 85 |
| | FOX RIVER PAPER | APPLETON ,WI | 81 |
| | FOX RIVER PAPER | APPLETON ,WI | 81 |
| | GEORGE BANTA CO | MENASHA ,WI | 31 |
------------------------------------------------------
| February 22, 2005 |
------------------------------------------------------
| | FOX RIVER PAPER | APPLETON ,WI | 81 |
| | GEORGE BANTA CO | MENASHA ,WI | 80 |
------------------------------------------------------

Thank You
Peter
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
hi,

there is no feature included in the DataGrid class for this, you have two options, you could create a grid inside a repeater, the repeatuer will create the grouping by date, then the grid ( or another repeater ) will show the particular orders.

you would have to create also the data sources for each objects using the correct criteria.

another solution could be using crystal report .
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Peter" <pczurak@.nospam.nospam> wrote in message news:u2****************@TK2MSFTNGP14.phx.gbl...
Does anyone have an example of how to format VS 2003 Data Grid that looks like the example below?

I want the data to be grouped by the Date Field and display one date for each group of dates and the date to be the heading for each group.

------------------------------------------------------
| | Consignee | Location | MU |
------------------------------------------------------
| February 21, 2005 |
------------------------------------------------------
| | CITY FOREST CORP | LADYSMITH ,WI | 85 |
| | FOX RIVER PAPER | APPLETON ,WI | 81 |
| | FOX RIVER PAPER | APPLETON ,WI | 81 |
| | GEORGE BANTA CO | MENASHA ,WI | 31 |
------------------------------------------------------
| February 22, 2005 |
------------------------------------------------------
| | FOX RIVER PAPER | APPLETON ,WI | 81 |
| | GEORGE BANTA CO | MENASHA ,WI | 80 |
------------------------------------------------------

Thank You
Peter
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.