Devexpress GridControl无限高度惹得祸

异常提示:

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>

 

posted @   stonewl  阅读(700)  评论(1编辑  收藏  举报
编辑推荐:
· DeepSeek 解答了困扰我五年的技术问题
· 为什么说在企业级应用开发中,后端往往是效率杀手?
· 用 C# 插值字符串处理器写一个 sscanf
· Java 中堆内存和栈内存上的数据分布和特点
· 开发中对象命名的一点思考
阅读排行:
· DeepSeek 解答了困扰我五年的技术问题。时代确实变了!
· PPT革命!DeepSeek+Kimi=N小时工作5分钟完成?
· What?废柴, 还在本地部署DeepSeek吗?Are you kidding?
· DeepSeek企业级部署实战指南:从服务器选型到Dify私有化落地
· 程序员转型AI:行业分析
欢迎阅读『Devexpress GridControl无限高度惹得祸』
点击右上角即可分享
微信分享提示