如何解决Datagridview中的性能问题(Datagridview中最少10,000行)? [英] How to solve performance issue in Datagridview( Minimum 10,000 rows in Datagridview)?

查看:129
本文介绍了如何解决Datagridview中的性能问题(Datagridview中最少10,000行)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,



数据网格视图在加载大量数据时变得非常慢。



我也希望根据条件显示一列

数据网格视图列是复选框列。



所以我我有复选框(数据网格视图控件的外侧)



1.如果我选中了那边的复选框,则在数据网格视图中显示一个添加列。 br />
默认情况下取消选中所有行。用户手动检查数据网格视图行。



(或)



2.取消选中该项复选框列然后隐藏特定列的数据网格视图。

默认情况下,所有行都已选中。



这样我一次又一次地重新加载整个数据网格视图。



注意:

i。数据网格视图至少有10,000行,

ii。如果我按下开始按钮然后使用线程逐行执行,

(检查行执行,未检查的行不执行)

iii。所有记录都来自XML文件并直接绑定到数据网格视图。

不使用SQL服务器或XML文件以外的任何数据库。



请提供解决方案。如何快速加载数据网格视图。

Hi Team,

Data Grid View getting very slow when I am loading large amount of data.

and also I want to show one column based on condition
That Data grid view column is Check Box Column.

so I am having check box (out side the Data grid view control)

1. If I checked that out side check box then one addition column shown in Data grid view.
All rows are unchecked by default. user checked that data grid view rows manually.

(or)

2. unchecked that out side check box column then hide Data grid view that particular column.
All rows are Checked by default.

So that I reload whole Data grid view again and again.

Note:
i. Data Grid View having minimum 10,000 rows,
ii. if I press start button then execute line by line using thread,
(checked rows execute, unchecked rows not execute)
iii. All records are getting from XML file and bind to data grid view directly.
Not using SQL server or any data bases other than XML file.

Please provide solution. How to do data grid view loading very fast.

推荐答案

可能是, VirtualMode 中的dataGridView将是一个解决方案?
May be, dataGridView in VirtualMode will be a solution?


请参阅以下链接,它对您非常有用



SQL Server 2005年的分页结果 [ ^ ] [ ^ ]



谢谢,

-RG
See the below link it is very useful to you

SQL Server 2005 Paging Results[^][^]

Thanks,
-RG


Quote:

线程从数据网格视图行逐行执行,

所以用户希望看到所有行[不需要分页这个场景]。

Thread is executing line by line from data grid view rows,
so user want to see all rows [Not required paging this scenario].

我不这么认为。在这个世界上谁愿意在一个页面上看到如此多的记录?



如果用户/客户拒绝,那么说服他/她告诉我们如何在 Paging 方面取得更好的表现。这是处理这些大量数据的最佳方法。

I don't think so. Who on this earth would like to see so many records on one Page?

If User/Client is refusing, then convince him/her telling that how we can achieve better performance in terms of Paging. That is the best way to handle these much of data.


这篇关于如何解决Datagridview中的性能问题(Datagridview中最少10,000行)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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