Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 3rd, 2003, 06:39 PM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jujuraf Send a message via Yahoo to jujuraf
Default rotating output of datagrid control

I am using a datagrid control to display four types of data that represent quarterly financial data. The data is stored as four data types (columns) each with 40 fields (one for each quarter). For display purposes only I want to display this like it would appear in Excel; that is quarterly data across the top and four rows.

This data is not stored in a database but for now is hard-coded in a set of arrays in the code (eventually it'll be read from an XML file). The mechanism used to store the data shouldn't matter to how datagrid deals with it, right?

How can I get the datagrid to rotate the data when it's displayed? I want it like this:

DataA | Y1Q1 | Y1Q2 | Y1Q3 | Y1Q4 | Y2Q1 | ... etc
DataB | Y1Q1 | Y1Q2 | Y1Q3 | Y1Q4 | Y2Q1 | ... etc
DataC | Y1Q1 | Y1Q2 | Y1Q3 | Y1Q4 | Y2Q1 | ... etc
DataD | Y1Q1 | Y1Q2 | Y1Q3 | Y1Q4 | Y2Q1 | ... etc

I want all for in one datagrid, not four data grids (since this data set needs to stay in sync such that they scroll together as user enters data across the quarters).

Thnx, Deb





Similar Threads
Thread Thread Starter Forum Replies Last Post
User COntrol Datagrid inside datagrid rodmcleay ASP.NET 1.0 and 1.1 Professional 3 April 14th, 2007 10:11 AM
Rotating Picture Control Pipen VB How-To 1 April 21st, 2006 03:48 PM
Rotating Text aliddle General .NET 0 February 12th, 2005 11:52 PM
php - rotating text cat PHP How-To 6 December 14th, 2004 06:22 AM
Rotating images with PHP dean_custom PHP How-To 2 March 23rd, 2004 10:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.