如何使gridview内容在不改变大小的情况下进行查看 [英] How to make the gridview content to be viewed with out varying the size

查看:98
本文介绍了如何使gridview内容在不改变大小的情况下进行查看的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将在网格视图中显示我拥有的数据,每一行数据的大小均相同,但是当显示大小变化时,是否有任何可用选项可使网格视图的每一行都具有相同的值

这是我的示例网格视图

http://i.imgur.com/dAAVa.png [

I will show the data that i have in a grid view each and every line of the data is of same size but while showing the size varies is there any option available to make each and every row of the grid view make the same

Here is my sample grid view

http://i.imgur.com/dAAVa.png[^]

推荐答案

嗯,最简单的解决方案是限制每列上将要显示的字符数.因此,如果要显示的值大于固定大小(例如50),则可以动态添加其他控件或使该控件可见(一旦存在),然后将整个内容显示为该控件中的工具提示.

查看下面的链接
http://i.imgur.com/zXaAj.png [
Well, the easiest solution is to restrict the number of characters that are going to be displayed on each columns. So If the value that is going to be displayed greater that the fixed size say 50, then add additional control dynamically or make visible if exist and once you do that will show the whole content as tooltip in this control.

Look the link below
http://i.imgur.com/zXaAj.png[^]

Note: The more shows the whole content of the column value.


我在看同一张图片吗?

在我看来,每一行的大小都是相同的.可以肯定的是,我将其粘贴到Paint Shop Pro中,然后检查:每一行的高度和宽度都完全相同.

是我们中的一个需要进行视力测试吗?还是我缺少一些东西?
Am I looking at the same picture?

That looks to me as if each and every row is the same size. Just to be sure, I pasted it into Paint Shop Pro, and checked: every row is the exact same height and width.

Does one of us need our eyes testing, or am I missing something?


您是说说gridview文本需要合理化吗?如果是,请尝试对gridview列使用以下CSS:
Do you mean gridview text needs be to justified? If yes, try to use following CSS for gridview column:
.JustifyStyle{
    text-align: justify
}


这篇关于如何使gridview内容在不改变大小的情况下进行查看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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