Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

datagrid horizontal layout

Posted on 2004-10-25
5
Medium Priority
?
1,081 Views
Last Modified: 2012-08-13
I'm almost sure I have seen this before but it may have been in a dream or something hehe.
The defaut layout for the datagrid is vertical.
I was wondering if there was a way to line up date horizontal.
Vertical layout
Total - Item
1         546
3         324
5         234

VS.
horizontal layout
Total  1       3     5
Item  546  324  234

I was hopeing to do with  datagridlayout = horizontal....that would be awsome
 but i could redo my sql to make a pivit table that would work too.

thanks for any help
0
Comment
Question by:j_tipps
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 4

Expert Comment

by:vinhthuy_nguyen
ID: 12407510
hi buddy,
Yep, sometimes it's a dream but you know with programing, you can make you dream come true buddy.:-) , the important is ideas, like yours.
About your dream, with me, you will give you my 2 bad solution, may be...:-)
1.You can horizontal you data with datatable, no need to use datagrid, you can add rows one by one with your data retriever, DataSet or DataReader.
2.With datagrid, just an idea, haven't tested, you can bind every row for every column like this :
' .... with the H_reader is your datareader
dim H_grid as datagrid
dim H_column as datagridColumn
dim H_tableCell as TableCell
i=0
While H_reader.read
H_tableCell.text = H_reader("anything")
H_column.InitializeCell(H_tableCell, i+1, ListItemType.Item)
i+=1
End While

Nice day
0
 
LVL 3

Accepted Solution

by:
HendrikTYR earned 2000 total points
ID: 12409522
0
 

Author Comment

by:j_tipps
ID: 12410023
Didn't there used to be the option to share points between two answers on this web site?
OO well couldn't find that options this time around.

Thanks alot to you both of you.  
I gave the point to Hendrik becuase thats the solution i'm going and provided with code.
I think vinhthuy_nguyen's option one soultion is the same idea as in the link.

Thanks again guys.  maybe you can talk to somebody about bringing the split points option back.
0
 
LVL 4

Expert Comment

by:vinhthuy_nguyen
ID: 12412358
It's ok j_tipps, no need to split the point, Hendrik actually give a perfect link that make thing clear and update me a lot.
Nice day
0
 

Expert Comment

by:scollege
ID: 23298027
Accepted Solution contains a bad link ("Bad Request (Invalid Hostname)")...
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question