We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Fill large amounts of data into GridControl

Thread ID:





6361 Aug 11,2003 06:38 AM UTC Aug 12,2003 12:55 AM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On August 11, 2003 06:38 AM UTC

I'm using the GridControl as the data editor.If data is very large(say over 10,000 records),the data filling speed is quite slow.Is there any way to improve the speed? the way I use like below: this.gridControl1.RowCount = recordCount; this.gridControl1.BeginUpdate(); while(!obj.TableRecordEOF()) { count++; string[] record =...; for(int i=0;i

Administrator [Syncfusion]
Replied On August 11, 2003 06:57 AM UTC

I think you can speed things up considerably by avoiding the use of the indexer on the grid, and instead, directly populate the GridData object. Doing so, will avoid multiple events that are fired as you use an indexer on the grid object. So, outside of your loops, get a reference to the GridData object. GridData data = this.gridControl1.Data; Then inside your loops, instead of this.gridControl1.Model[count,i+1].Text =record[i]; try GridStyleInfo style = new GridStyleInfo(); style.Text = record[i]; data[count, i+1] = style.Store;

Administrator [Syncfusion]
Replied On August 12, 2003 12:55 AM UTC

Thanks Clay, the way you suggested is perfect. Kaifeng Chen


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon