详情视图中的反向标题列和数据列 [英] reverse header column and data column in detailsview
本文介绍了详情视图中的反向标题列和数据列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,,
帮帮我
如何在detailsview中反转标题列和数据列??
谢谢
hi all,,,
help me
how to reverse header column and data column in detailsview ??
thanks
推荐答案
尝试将dir="rtl"
添加到GridView(如果可能)或包含的div中.我现在无法尝试.如果这不是您想要执行的操作,请添加一些信息.
---
好吧,如果您无法使方向反转起作用,则可以将所有列定义为TemplateFields并自己实现反向. 此处 [ ^ ].您只需在每个templatefield中添加两个构造即可.
Try addingdir="rtl"
either to the GridView (if possible) or to a containing div. I can''t try it out right now. If that is not what you wanted to do, please add some information.
---
Well if you can''t get the direction inversion to work, you can define all your Columns as TemplateFields and implement the reverse direction yourself. The use of templatefields is described here[^]. You just add twoconstructs per templatefield and you are done.
那你怎么了?只需在模板字段中执行以下操作:
So what is your problem? Just do it like this in the template field:
<td><label text="HeaderText1" /></td>
<td><label text="<%=Eval("fieldname")%>" /></td>
这就是反向的意思吗?
That is what you mean by reverse direction right?
根据此论坛中的讨论在ASP.net上 [ ^ ] <需要在table
元素中设置c0>.
According to this discussion in the forums on ASP.net[^] thedir="rtl"
needs to be set in thetable
element.
这篇关于详情视图中的反向标题列和数据列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文