gridview列内文本的右对齐未使文本右对齐。 [英] The right-alignment of the text inside the gridview column not getting text align right.

查看:392
本文介绍了gridview列内文本的右对齐未使文本右对齐。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Every One我正在使用以下网格并使第二列在

右侧对齐,但它没有在右侧对齐。

I我使用的IE和客户端要求只是IE。但它在其他浏览器中工作正常。









< asp:GridView ID =gvThingsrunat =serverAutoGenerateColumns =false>

< columns>< asp:BoundField DataField =textHeaderText =TextItemStyle-Width =200/>

< asp:BoundField DataField =number1HeaderText =Number 1ItemStyle-Width =100px

ItemStyle- Horizo​​ntalAlign =RightHeaderStyle-Horizo​​ntalAlign = 右HeaderStyle-Width =100px/>

请任何一次可以帮我解决问题。

解决方案

这篇文章有你的解决方案:



查看解决方案

Hi Every One i am using the following grid and making the second column to be align at
right side but it is not getting alignment at right side.
I am using the IE and client requirement is only IE. But It Works fine in other browsers.




<asp:GridView ID="gvThings" runat="server" AutoGenerateColumns="false">
<columns><asp:BoundField DataField="text" HeaderText="Text" ItemStyle-Width="200" />
<asp:BoundField DataField="number1" HeaderText="Number 1" ItemStyle-Width="100px"
ItemStyle- HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" HeaderStyle-Width="100px" />
Please any once could help me to solve the issue.

解决方案

This article has your solution in it:

View Solution


这篇关于gridview列内文本的右对齐未使文本右对齐。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆