473,412 Members | 3,860 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,412 software developers and data experts.

Datagrid, on the side?

Hi!
Does anyone know how to present data in columns instead of rows?
eg:
Result1 Result2 Result3 ... Result n
Surname
Given name
Born
....

By the way, the grid is bound to dataset.

Thanks in advance!
Henrik
Nov 18 '05 #1
2 1100
It sounds like you need the data pivoted. The datagrid doesn't support that,
perhaps some of the 3rd party products do.

You can try pivoting the data on the database side. For SQL Server, I
believe there is no built in way to do that, so you would have to roll your
own solution in a stored procedure or something.

"HenkeBenke" <he************@hotmail.com> wrote in message
news:uT**************@TK2MSFTNGP12.phx.gbl...
Hi!
Does anyone know how to present data in columns instead of rows?
eg:
Result1 Result2 Result3 ... Result n
Surname
Given name
Born
...

By the way, the grid is bound to dataset.

Thanks in advance!
Henrik

Nov 18 '05 #2
Right, until SQL 2005 gets here, you'll have to pivot yourself. There
is a SQL Server example here:
http://msdn.microsoft.com/library/de...qd_14_04j7.asp

--
Scott
http://www.OdeToCode.com/

On Mon, 4 Oct 2004 10:32:38 -0400, "Marina" <so*****@nospam.com>
wrote:
It sounds like you need the data pivoted. The datagrid doesn't support that,
perhaps some of the 3rd party products do.

You can try pivoting the data on the database side. For SQL Server, I
believe there is no built in way to do that, so you would have to roll your
own solution in a stored procedure or something.

"HenkeBenke" <he************@hotmail.com> wrote in message
news:uT**************@TK2MSFTNGP12.phx.gbl...
Hi!
Does anyone know how to present data in columns instead of rows?
eg:
Result1 Result2 Result3 ... Result n
Surname
Given name
Born
...

By the way, the grid is bound to dataset.

Thanks in advance!
Henrik


Nov 18 '05 #3

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

Similar topics

1
by: John Good | last post by:
Hi I use the Datagrid webcontrol on my web page, and I use the following client-side javascript to duplicate the current row to the datagrid. But when I loop through the data in datagrid from...
4
by: Glenn Owens | last post by:
I have a DataGrid web control which I've dynamically populated with template columns to be used for bulk-editting. Generally, all of the columns are textbox and/or dropdownlist child controls. ...
2
by: Manish | last post by:
Hey folks I am having a weird problem in ASP .Net. My page is in C#. I have a datagrid, which populates based on selection in drop down box on ASP page. This datagrid has template textbox colum in...
8
by: Sue | last post by:
I have a datagrid populated with 6 visible read-only labels and several hidden fields. Below the datagrid, I have a table with various textboxes, dropdowns, etc. I've managed to decypher the...
5
by: David Freeman | last post by:
Hi There! I'm using ASP.NET 1.1 and VB. Below is my DataGrid declaration... <asp:DataGrid id="myDataGrid" runat="server" AutoGenerateColumns="false"
4
by: Neven Klofutar | last post by:
Hi, I need to create the following ... I have DataGrid filled with information (ID, name, price ...). I need to call a function when I click on the item in the DataGrid (and pass ID as an...
1
by: B | last post by:
Hi, I would like to split up an mdi form using a splitter where a datagrid would be on the left side and child forms on the right side. So far, I have placed a splitter on the form, dragged it...
2
by: mark4asp | last post by:
This page is currently using a Repeater control to create a table with 6 columns. The first column has 2 ImageButton controls and a common header. How can I do this with a DataGrid ? I need...
7
by: rn5a | last post by:
The first column of a DataGrid has a CheckBox for all the rows. I want that when users check a CheckBox, the BackColor of that entire row in the DataGrid should change to a different color. To...
1
by: Andrew Wan | last post by:
Is it possible to make some of the DataGrid functionality to client-side? Such as the Edit, Update, Cancel, Delete functionality? Everytime I click on a row's Edit button, I wait 2 seconds...
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?
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.