问题描述
我有一个Collection,它的数量超过1000.
现在,我已将此Collection作为Windows应用程序中的数据源分配给DataGridView控件(VB .NET)
那个时候绑定过程需要花费太多时间。
绑定时作为数据源的集合将触发该特定集合中的所有属性。假设集合有1000行,网格有40列。所以它的时间称为1000 * 40次属性。
注意:我的DataGridView控件有40列。
I have a Collection, and its count is above 1000.
Now, i have assigned this Collection to the DataGridView Control as a Datasource in Windows Application (VB.NET)
That time it will take too many times for Binding process.
While Binding the collection as a datasource all the properties within that specific collection get fired. Assume collection has 1000 rows and grid has 40 columns. so that time it called 1000*40 times for properties.
Note: My DataGridView Control has 40 Columns.
推荐答案
这篇关于将Collection绑定到Datagridview需要花费太多次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!