473,394 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Data Grid format

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
2 3019
Peter,

For the Windows Forms datagrid, there is no way to do this. You would
have to subclass the control and handle the drawing yourself. There are a
number of third party grids that do this though.

In ASP.NET, the data grid has a lot of custom functionality to render
things of this nature (after all, it's really just a table) and would be a
lot easier.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Peter" <cz****@newsgroups.nospam> wrote in message
news:eY**************@TK2MSFTNGP12.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
Peter,

As Nicholas said, it won't be easy with the windows forms datagrid. If
you're doing ASP.NET, that's a different thing altogether.

For Windows Forms, there are a number of 3rd party grids and I would
highly recommend the Syncfusion grid. It's extremely flexible. That
flexibility comes at the cost of ease of use. It takes a little getting used
to, but if you want to do really custom grids, it's definitely the best I've
found.

You can download a trial version from their web site. They have a number
of samples of doing all sorts of customizations. Definitely look at the
samples as trying to figure out how to use it just from the documentation
will likely be overwhelming.

Pete

"Peter" <cz****@newsgroups.nospam> wrote in message
news:eY**************@TK2MSFTNGP12.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 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Les | last post by:
Hi can anyone help me, I have just graduated and have started working for a building developer which deals with a large quantity of drawings. As you can imagine these all need documenting...
1
by: Peter | last post by:
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...
6
by: Hutty | last post by:
I've looked around and have yet to find anything that would answer my question regarding formating a column in a datagrid. My grid looks like this as far as data" AMHQCON|51300.01|-3147 The...
1
by: Paul | last post by:
Hi just wondering how to limit the string size for a data grid column, can this be done from the properties box, data formatting expression? If so what would be the expression to limit it to 20...
10
by: John Wilson | last post by:
My app produces some long datatables to display in a grid. So I put them in a div so users can scroll. But the grid headers scroll out of view. I would like to stop them doing this. Can I fix them...
1
by: huseinv | last post by:
Hi. I have a search tool which gives data in listing format and grid format (based on selection) on the same asp page. If a user select grid, the result is listed in grid format. Now how i can...
1
by: Stephen Plotnick | last post by:
I have a checkbox in a data grid that does not change it's state until I actually leave the field. I've done this routine several times in other data grids without an issue. I'm using VB.2003. ...
0
by: ashwin | last post by:
I have a Data Grid to display employee names and codes. On clicking a button (outside the datagrid) I perform some calculations which sets the fields of other columns in the datagrid. The problem...
0
by: ashwin | last post by:
I have a Data Grid to display employee names and codes. On clicking a button (outside the datagrid) I perform some calculations which sets the fields of other columns in the datagrid. The problem...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.