首页 > 其他 > 详细

Devexpress GridControl无限高度惹得祸

时间:2018-06-25 14:00:56      阅读:262      评论:0      收藏:0      [点我收藏+]

异常提示:

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布局中加了GridControl后出现

发生原因:网络指点,GridControl如果无限高度的话,由于grid需要渲染,因此没有高度的grid系统dev认为无法完成,因为会耗尽宽带,直接不处理。

症状:页面加载失败,无法显示,

处理意见:grid设置固定高度,或者装载grid的容器设置固定高度。

<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="5*"/>
<RowDefinition Height="95*"/> 原本:height=auto
</Grid.RowDefinitions>
</Grid>

 

Devexpress GridControl无限高度惹得祸

原文:https://www.cnblogs.com/stoneWl/p/9223765.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!