Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
seyha_moth
Yak Posting Veteran
74 Posts |
Posted - 2006-12-13 : 02:23:35
|
Dear Sir or Madam I'm glad to participate in this forum and I hope that I'll receive the good knowledge and guide from here.I have the problem related to GridView is that I want to Rotate some header text in GridView.Rotation may be90 degree or 270 degree,especially,my Grid View is bound from database.Can you help me?I look forward to hearing from youThank you in advanceGood Luck and Succeed your work!seyha moth |
|
seyha_moth
Yak Posting Veteran
74 Posts |
Posted - 2006-12-14 : 02:21:08
|
Hi,I solve the problem with finding document on msdn forum.The following statement is the description of Eric:Well I just figured it out on my own after playing around with it for a while. I am writing this to share with anyone else who may also need to rotate text in a gridview. I am only rotating text in the header row, but this should work for all cells in the gridview if needed. I am using an external style sheet for my .aspx page ith the following as one of the styles:.verticaltext{font:bold 10px Tahoma;color: #0000FF;writing-mode: tb-rl;filter: flipH() flipV();}So what I am doing is loading my gridview like usual, and then adding a _DataBound event for the gridview. So here is the code to rotate the header row.Protected Sub gvMatrix_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles gvMatrix.DataBoundDim style As New Web.UI.WebControls.StyleDim row As GridViewRow = gvMatrix.HeaderRowstyle.CssClass = "verticaltext"For Each cell As TableCell In row.Cellscell.ApplyStyle(style)Nextend subI hope this helpsseyha moth |
 |
|
|
|
|