阅读 179

WPF 中Devexpress GridControl无限高度问题

今天在用WPF开发时,调用DevExpress的GridControl。测试时正常,但最后转到所需要的框架出了问题,报错如下:

By default, an infinite grid height is not allowed since all grid rows will be rendered and, hence, the grid will work very slowly. To fix this issue, place the grid into a container that will give a finite height to the grid, or manually specify the grid‘s Height or MaxHeight. Note that you can also avoid this exception by setting the GridControl.AllowInfiniteGridSize static property to True, but in that case, the grid will run slowly.

我的英语也是个半罐水,翻译后才知道。是页面的Grid的Height为星号或者Atuo时,就会报这个错!

网上查的资料都说得。。。。。不说了伤心。

现在我用最简单的方法:

  直接把GridControl.View下添加一个MaxHeight就行了



 

这个MaxHeight根据自己的实际情况添加

原文:https://www.cnblogs.com/icewatermei/p/14423379.html

文章分类
代码人生
版权声明:本站是系统测试站点,无实际运营。本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 XXXXXXo@163.com 举报,一经查实,本站将立刻删除。
相关推荐