当内容更多时,我可以仅在网格视图的项目模板中显示单行int吗? [英] can i show only single line int the item template of grid view when content is more

查看:62
本文介绍了当内容更多时,我可以仅在网格视图的项目模板中显示单行int吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用网格视图来绑定数据,列"note"和"address"中的两列具有更多内容,我需要隐藏部分内容,只想显示单行. "h2_lin">解决方案

在您的TD in item template部分中使用此样式:

 <  表格 > ;  <   tbody  >  <   tr  >  <   td     ="  空白:nowrap;" >  <  /td  <  >  /tbody  <  >  



它可以防止断线.

希望对您有所帮助.


I am using grid view to bind data, two of the columns ''note'' and ''address'' having more content, i need to hide part of content, wants to show only single line.

解决方案

Use this style for your TD in item template section :

<table><tbody><tr><td style="white-space: nowrap;"></td></tr></tbody></table>



It prevents line breaking.

Hope it helps.


这篇关于当内容更多时,我可以仅在网格视图的项目模板中显示单行int吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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