For a datagrid you will need to do something like this.
<%@ Page Language="VB" Strict=True %>
<%@ import Namespace="System.Data" %>
<script language="VB" runat="server">
Sub Page_Load(byVal obj As Object, byVal e As EventArgs)
if not IsPostback
BindData()
end if
End Sub
sub BindData()
Dim dt As New DataTable()
Dim dr As DataRow
dt.Columns.Add(New DataColumn("StringValue", GetType(String)))
Dim i As Integer
For i = 0 To 9
dr = dt.NewRow()
dr(0) = "<span class=" & chr(34) & "sideway" & chr(34) & ">Item
" & i.ToString() & "</span>"
dt.Rows.Add(dr)
Next i
Dim dv As New DataView(dt)
os0.datasource = dv
os0.databind
End sub
</script>
<style>
..sideway { writing-mode:tb-rl}
</style>
<html>
<body>
<form runat="server">
<asp:DataGrid id="os0" runat="server">
<ItemStyle cssclass="sideway">
</ItemStyle>
<columns>
<asp:BoundColumn DataField="StringValue" />
</columns>
</asp:DataGrid>
</form>
</body>
</html>
"Jae" <ak*********@earthlink.net> wrote in message
news:22**************************@posting.google.c om...
Does anyone know of a way to rotate text in a datagrid?
I have tried this :
http://msdn.microsoft.com/workshop/s...ritingMode.htm but this technique did not work for me.
I can create a Drawing.Image.Graphic but once you do that how do you add
the image to the page? Any help would be greatly appreciated
Jae