Windows应用程序中DataGridView可以保存的最大记录数 [英] Maximum number of records that can hold by a DataGridView in WIndows Application

查看:73
本文介绍了Windows应用程序中DataGridView可以保存的最大记录数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...


最大编号没有任何限制C#.net Windows应用程序中的记录datagridview的设置.

datagridview应该保留多少条记录才能正常工作?

谢谢

Hi Everyone...


is there any limit on maximum no. of records datagridview in C# .net Windows application.

how many records should datagridview hold so that it can work properly?

Thank You

推荐答案

为提高性能,默认情况下将EnableRowVirtualization属性设置为true.
当EnableRowVirtualization属性设置为true时,DataGrid不会为绑定数据源中的每个数据项实例化一个DataGridRow对象.
相反,DataGrid仅在需要它们时才创建DataGridRow对象,并尽可能地重用它们.
例如,DataGrid为当前在视图中的每个数据项创建一个DataGridRow对象,并在滚动到视图之外时回收该行.
这适用于.NET 4或更高版本.
对于早期版本的框架,您必须实现它.
To improve performance, the EnableRowVirtualization property is set to true by default.
When the EnableRowVirtualization property is set to true, the DataGrid does not instantiate a DataGridRow object for each data item in the bound data source.
Instead, the DataGrid creates DataGridRow objects only when they are needed, and reuses them as much as it can.
For example, the DataGrid creates a DataGridRow object for each data item that is currently in view and recycles the row when it scrolls out of view.
This applies to .NET 4 or later.
For earlier versions of framework you must implement it.


这篇关于Windows应用程序中DataGridView可以保存的最大记录数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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