473,406 Members | 2,620 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,406 software developers and data experts.

Display Data in Grid

I am trying to display stats about our errors the users report.
The backend is a SQL database.

The fields I want a count of is just ProblemCat.

I want to see something like this.

JAN FEB MAR APR MAY
JUN

Low 0 0 1 0
1 0
Medium 1 3 3 0
6 3
High 5 2 1 0
4 2
Critical 20 15 16 5
4 13
The data is in this format

Low, 03/01/05
Medium, 01/05/05
etc.

I can display the columns and the rows (Low, High, Medium, Critcal). Not
quite sure about doing the counts by ProblemCat by the month of the RptDate


Jul 22 '05 #1
2 1286
What's ProblemCat? And what do 03/01/05 and 01/05/05 mean? Are they dates?
I don't see how they correlate to your sample data.

JAN FEB MAR APR MAY JUN
Low 0 0 1 0 1 0
Medium 1 3 3 0 6 3
High 5 2 1 0 4 2
Critical 20 15 16 5 4 13

Ray at work

"Dthmtlgod" <dt*******@yahooo.com> wrote in message
news:OE*************@TK2MSFTNGP12.phx.gbl...
I am trying to display stats about our errors the users report.
The backend is a SQL database.

The fields I want a count of is just ProblemCat.

I want to see something like this.

JAN FEB MAR APR MAY
JUN

Low 0 0 1 0
1 0
Medium 1 3 3 0
6 3
High 5 2 1 0
4 2
Critical 20 15 16 5
4 13
The data is in this format

Low, 03/01/05
Medium, 01/05/05
etc.

I can display the columns and the rows (Low, High, Medium, Critcal). Not
quite sure about doing the counts by ProblemCat by the month of the
RptDate


Jul 22 '05 #2
Dthmtlgod wrote:
I am trying to display stats about our errors the users report.
The backend is a SQL database.

The fields I want a count of is just ProblemCat.

I want to see something like this.

JAN FEB MAR APR MAY
JUN

Low 0 0 1 0
1 0
Medium 1 3 3 0
6 3
High 5 2 1 0
4 2
Critical 20 15 16 5
4 13
The data is in this format

Low, 03/01/05
Medium, 01/05/05
etc.

I can display the columns and the rows (Low, High, Medium, Critcal).
Not quite sure about doing the counts by ProblemCat by the month of
the RptDate

You have not provided enough detail about your source table's structure. It
looks like you need a crosstab (pivot), so:
http://www.aspfaq.com/show.asp?id=2462

If this does not help, provide some more details
(http://www.aspfaq.com/etiquette.asp?id=5006)
Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #3

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

Similar topics

2
by: William Gill | last post by:
I need to display a couple of labels and a checkbox from each entry in my database. Simple enough, but there are several hundred records, and I only want to display 5 or 10 at a time. Can this be...
5
by: Will | last post by:
I've got a simple form that collects data from a user and I want to display that data in a sortable grid or table. The nature of this data is rather temporary, so there's no need to persist it to a...
2
by: andrewcw | last post by:
I have a simple winform Data Grid with a XML source file. The heirarcy is 1 level deep. While I have expand selected, I still have to click on the hyperlinks to get the grid to show its data. What I...
2
by: Joe Au | last post by:
I first add a grid layout panel control to a web form, then put a data grid inside the panel. When I run the web form, the data grid is filled up but it throws outside the panel control. The panel...
0
by: Rich Wallace | last post by:
Hi all... I have a web form that I load as my Default.aspx which has a data grid on it that I will populate from a SQL Server dataset once the user runs a query. The grid is formatted in a way...
1
by: John Phelan-Cummings | last post by:
When I add the name of a new individual in a, bound form, it will not display that person’s name in a label control of a second unbound form. I have a scheduling program that I am working on. ...
0
by: bluesyt | last post by:
Greetings, I have never used grids before and I'm relatively new to VB. I am using VB6 and ADO to pull data from an SQL database. Everything works and I can get the data into the grid but when...
0
by: Adam Sandler | last post by:
Hello, Prior to posting I looked at http://groups.google.com/group/ microsoft.public.dotnet.framework.aspnet/browse_thread/thread/ d8d5ae243614085e/d4fd6c4a5aa56f75 ...
0
by: simon | last post by:
hello, relatively new to .net, i'm using vb.net and the 2.0 .net platform I'm trying to display a grid that has a text box on the left in one cell (with a hidden ID), which will be associated...
2
by: kurtzky | last post by:
i created a form that should function as follows: i will enter a number in a textbox..then it should query from the database all the records which has that number..these records will have a...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.