Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • How to improve the grid's data loading performance?

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                First, please note that the XtraGrid does not put any data into its internal buffer, so, the slow down the grid introduces to your application can only be caused by painting. You may learn more on how the grid works with data if you read the XtraGrid Data Binding Specifics article.

                                Please try to perform the following test. Unlink the XtraGrid from its data source and run the app. Do you see a big difference between your initial project and the newly created one? If yes, we suggest that you implement a data loading routine in the background thread. Please review the "Give Your .NET-based Application a Fast and Responsive UI with Multiple Threads" MSDN article available at the following URL for more information and some code samples which illustrate this in detail:

                                http://msdn.microsoft.com/msdnmag/issues/03/02/Multithreading/default.aspx

                                In addition, please take a look at the articles available on the following links. They describe how to work with threading correctly using a very simple sample:

                                Safe, Simple Multithreading in Windows Forms, Part 1
                                Safe, Simple Multithreading in Windows Forms, Part 2
                                Safe, Simple Multithreading in Windows Forms, Part 3

                                Also, here are a couple of useful articles, which contain a sample project demonstrating how to populate a DataGrid with data from a background thread:

                                http://support.microsoft.com/default.aspx?scid=kb;en-us;Q318607
                                http://support.microsoft.com/default.aspx?scid=kb;en-us;Q318604

                                You may implement the same approach if you are using the XtraGrid in your application.

                                You may slightly improve the DataLoading process and completely eliminate the grid painting effect if you call the View's BeginUpdate method before and EndUpdate after your query is opened.

                                You must  log in  or  register  to leave comments

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners