如何在Windows应用程序中分别加载控件?请阅读说明 [英] How to load controls individually in windows applications? Please read the description

查看:74
本文介绍了如何在Windows应用程序中分别加载控件?请阅读说明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Visual Studio 2010和vb.net用于我的项目.在我的应用程序的主要形式中,有很多数据网格.表单加载非常缓慢,因为在发生这种情况时,必须在所有数据网格中填充数据,并且冻结所有控件.因此,我需要知道是否有可能在不冻结任何其他控件的情况下顺序且分别地加载每个datagrid

例如:在新的yahoo邮件中,当您选择收件箱时,仅在其他所有控件可用时才加载收件箱.但不幸的是,雅虎是一个Web应用程序.

Im using visual studio 2010 and vb.net to for my project. In the main form of my application there are so many data grids. The form loads very slowly because all the data grids must be populated with data and all the controls are freezed while this happens. So, i need to know whether it''s possible to load each datagrid sequentially and individually without freezing any other controls

For example: In the new yahoo mail when you select your inbox it only loads the inbox while all the other controls are available. But unfortunately yahoo is a web application. Is this even possible in a windows application?

推荐答案

顺序"加载它不会帮助您,但可能您已开始思考正确的方向.您需要虚拟化所有数据控件.您无需同时查看所有控件中的所有数据.因此,数据不应按顺序显示,而应按相反的方式显示:按需显示.要实现它,需要学习两个方面:1)数据绑定; 2)数据网格的虚拟模式.

—SA
Loading it "sequentially" won''t help you, but probably you''re starting to think in right direction. You need to virtualize all the data controls. You never need to look at all data in all controls at the same time. So, the data should be shown not "sequentially", but kind of in the opposite way: on demand. To implement it, learn two areas: 1) data binding; 2) virtual mode of the data grids.

—SA


这篇关于如何在Windows应用程序中分别加载控件?请阅读说明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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