Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have some data in datatable and i am binding it to the grid view and it looks like this

header1 header2
value1 value2

but i want to display in this way

header1 value1
header2 value2

I am storing the data in datable like
VB
dt.columns.add("header1")
dt.columns.add("header2")
dr.rows("header1")=value1
dr.rows("header2")=value2

dt.rows.add(dr)
Posted
Updated 4-Dec-11 18:44pm
v2
Comments
[no name] 5-Dec-11 0:44am    
EDIT: added "pre" tag

You can assign the below tag as your HeaderStyle

XML
<style>

.verticaltext {

writing-mode: tb-rl;

filter: flipv fliph;

}

</style>

HeaderCssClass="verticaltext"
 
Share this answer
 
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900