如何在Grdiview中显示所有行而不显示滚动条 [英] How to display all rows in Grdiview without displaying scrollbar

查看:130
本文介绍了如何在Grdiview中显示所有行而不显示滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



C#3.0 / .net 3.5 /以上版本的GridView有几百行,我该如何强制gridview扩展它的高度并显示所有行而不是scroolbar? DataGridView 有几件事可以帮助您计算高度:





但是我真的很感兴趣的是在没有滚动的情况下显示几百行的显示分辨率。

最后但并非最不重要测试):查看属性 AutoSize AutoSizeMode


I have gridview with few hundreds rows, how can I force the gridview to extend it's hight and display all rows without scroolbar?

C# 3.0 / .net 3.5 /

解决方案

The DataGridView has several things which could help you to calculate the height:

But i would be really interested on which display resolution you display a few hundred rows without scrolling.

Last but not least (nor tested): Take a look into the properties AutoSize and AutoSizeMode

这篇关于如何在Grdiview中显示所有行而不显示滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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