单词换行gridview列,其中从SQL语句生成gridview ... [英] word wrap a gridview column where the gridview is generated from an sql statement...

查看:66
本文介绍了单词换行gridview列,其中从SQL语句生成gridview ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个从sql语句填充的gridview. sql语句包含对下拉列表的引用.基本上,当从下拉列表中选择某项时,将填充gridview.当发生这种情况并且从表生成的字段确实很长时,gridview随列一起显示,该字段与一个单独的长字符串有关,该字符串将gridview吹离了浏览器窗口.因此,我想知道如何对上述专栏进行自动换行.

请告知您是否有能力或建议使用更好的方法来显示数据.

在此先感谢

I have a gridview that is populated from a sql statement. The sql statement contains a reference to a dropdown list. Basically when something is selected from the dropdown the gridview is populated. At the moment when this happens and a generated field from the table is really long the gridview is displayed with the column this field relates to being one single long string that blows the gridview off the browser window. I would like to know therefore how to wordwrap the aforementioned column.

Please advise if your able or perhaps suggest a better method to display the data.

Thanks in advance

推荐答案

将您的gridviewstyle="overflow-x:scroll;"asp.net panelScrollBars="Horizontal"属性一起放置在div中可能会帮助您克服浏览器窗口显示.
Well putting your gridview in div with a style="overflow-x:scroll;" or asp.net panel with ScrollBars="Horizontal" property might help you to overcome off browser window display.


您可以使用编辑项模板来调整gridviews列的大小,并且可以根据需要使用修改后的大小,也可以将样式应用于网格视图. ...


或者请更具体地使用语言来说明您的问题.
You can adjust the size of your gridviews columns using edit item template and as per your requirement you can use the modified size and also you can apply style to your grid view....


or please be more specific in using language to demon strait your question.


这篇关于单词换行gridview列,其中从SQL语句生成gridview ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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