如何在DataGrid中设置单元格方向 [英] how to set cell Orientation in DataGrid
本文介绍了如何在DataGrid中设置单元格方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个DataGrid.我想将标题方向"设置为45.如何设置单元格方向.通过asp.net代码帮助我.
I have a DataGrid. I would like to set the Headers orientation= 45. How to set cell orientation. Help me through asp.net Code.
推荐答案
找到msdn链接 http://msdn.microsoft.com/zh-我们/library/system.web.ui.webcontrols.gridview.aspx [
Hi,
find the msdn link http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.aspx[^]
Are you use template fields?
<columns>
<asp:templatefield xmlns:asp="#unknown">
<headertemplate></headertemplate>
</asp:templatefield> </columns>
您的意思是说标题文本将显示为45''
那么您需要使用CSS将其添加到标头单元格
you mean to say header text will show rotate as 45''
then you need css to add it to header cell
这篇关于如何在DataGrid中设置单元格方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文