﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » How do I get the XtraGrid to handle data efficiently?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 16 Sep 2026 17:33:16 GMT</lastBuildDate><ttl>20</ttl><item><title>How do I get the XtraGrid to handle data efficiently?</title><link>http://forum.strataframe.net/FindPost13775.aspx</link><description>I am using&amp;nbsp;a BBS to fill a DevExpress XtraGrid control.&amp;nbsp; It works ok.&amp;nbsp; It is slow, though, especially on the other end of our company's T1 line.&amp;nbsp; It is so slow that the application is nearly unusable.&amp;nbsp; What can I do to either make the grid behave better or utilize the BBS more efficiently, so that the data results are presented in a far more user-friendly fashion (read: faster).&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR&gt;Bill</description><pubDate>Tue, 29 Jan 2008 09:15:31 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: How do I get the XtraGrid to handle data efficiently?</title><link>http://forum.strataframe.net/FindPost13821.aspx</link><description>LOL....I have had that converstaion with myself once or twice before :D</description><pubDate>Tue, 29 Jan 2008 09:15:31 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How do I get the XtraGrid to handle data efficiently?</title><link>http://forum.strataframe.net/FindPost13816.aspx</link><description>Nice, Greg, nice ;)</description><pubDate>Tue, 29 Jan 2008 09:00:35 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: How do I get the XtraGrid to handle data efficiently?</title><link>http://forum.strataframe.net/FindPost13805.aspx</link><description>[quote]Or, how do you draw a blank?[/quote]&lt;br&gt;
&lt;br&gt;
Oh, I find it quite easy.  I just...:ermm:...let me think...:unsure:...yeah, you first take the...:unsure:...no, that's not right. I had it a minute ago...:blink:...Arggggh, this is driving me insane...:crazy:...I just did this a minute ago...:angry:...Oh, you get a handle to a DC, then you...:pinch:...or was it a Graphics object...:crying:...I can't take it anymore. Oh, wait. I did it, I'm drawing a complete blank...:Whistling:&lt;br&gt;
&lt;br&gt;
;)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description><pubDate>Mon, 28 Jan 2008 20:42:42 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: How do I get the XtraGrid to handle data efficiently?</title><link>http://forum.strataframe.net/FindPost13792.aspx</link><description>[quote]Or, how do&amp;nbsp;you draw&amp;nbsp;a blank?&amp;nbsp;[/quote]&lt;/P&gt;&lt;P&gt;I like that :)&amp;nbsp; I will have to start using that one too :D</description><pubDate>Mon, 28 Jan 2008 16:00:08 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How do I get the XtraGrid to handle data efficiently?</title><link>http://forum.strataframe.net/FindPost13787.aspx</link><description>[quote][b]Trent L. Taylor (01/28/2008)[/b][hr]This is kindof like asking, "How long is a string?"[/quote]&lt;/P&gt;&lt;P&gt;Or, how do&amp;nbsp;you draw&amp;nbsp;a blank?&amp;nbsp; I was going to go the route of the status bar.&amp;nbsp; That will work...no use messing with threads and dialog boxes and such when it isn't all that necessary.&amp;nbsp; I can add eye-candy once the functionality is in place.&amp;nbsp; Thanks for the input!</description><pubDate>Mon, 28 Jan 2008 15:17:43 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: How do I get the XtraGrid to handle data efficiently?</title><link>http://forum.strataframe.net/FindPost13784.aspx</link><description>[quote]Coming from a web environment, the presentation of the data was a mere few seconds (2500 records).[/quote]&lt;/P&gt;&lt;P&gt;Yeah, I understand, but in this environment, the data is generally at the same location as the web servers and so there is more internal bandwidth when retrieving the data.&lt;/P&gt;&lt;P&gt;[quote]Are there any examples of&amp;nbsp;the presentation of a fancy&amp;nbsp;wait box when a user does a sort or filter?&amp;nbsp; [/quote]&lt;/P&gt;&lt;P&gt;This is kindof like asking, "How long is a string?" :)&amp;nbsp; We have a mechanism within our medical software that shows a form on a thread and allows us to update that form....we also use a ThemedStatusStrip for some of the other stuff (most of the end-users preferred the status strip in many cases).&amp;nbsp; I wish I had a quick answer here, but this is a more in-depth topic and could go many different ways depending upon the design of your system.&amp;nbsp; Sorry :ermm:</description><pubDate>Mon, 28 Jan 2008 14:36:43 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How do I get the XtraGrid to handle data efficiently?</title><link>http://forum.strataframe.net/FindPost13780.aspx</link><description>Trent,&lt;/P&gt;&lt;P&gt;Thanks a ton for the quick response!&amp;nbsp; I was hoping you would just say, "Set the wadangle property of the wuzzit."&amp;nbsp; I can accept that I need to do the limitation work on the design side.&amp;nbsp; No problem.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Coming from a web environment, the presentation of the data was a mere few seconds (2500 records).&amp;nbsp; There was no data sorting and such, though.&amp;nbsp; The trade offs are now showing up with all of that fancy data manipulation stuff in the grid.&amp;nbsp; There is power in a winform app, but the bandwidth does present its own limitations.&lt;/P&gt;&lt;P&gt;Are there any examples of&amp;nbsp;the presentation of a fancy&amp;nbsp;wait box when a user does a sort or filter?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Have a great day!&lt;BR&gt;Bill</description><pubDate>Mon, 28 Jan 2008 14:20:24 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: How do I get the XtraGrid to handle data efficiently?</title><link>http://forum.strataframe.net/FindPost13777.aspx</link><description>Bill,&lt;/P&gt;&lt;P&gt;The issue you are fighting here is not specific to the BBS and the BO...it has to do with the amount of data being pulled accross the network...not the grid once the data has been retrieved.&amp;nbsp; 2500 records is actually a lot of data when dealing with a disconnected data set.....which is not just specific to SF, but .NET development standards.&amp;nbsp; A ListView in this wouldn't make any difference anyway because your issue is retrieving the data....and in turn once the data is modified, saving the data.&lt;/P&gt;&lt;P&gt;You may have to start rethinking the way that you do things, especially in regards to coming from old types of technology or data-centric languages such as FoxPro and Access.&amp;nbsp; We too use grids within our medical application.&amp;nbsp; We also have times when we have great amounts of data that needs to be addressed...but generally you never need to access all 2500 records at once.&amp;nbsp; &lt;/P&gt;&lt;P&gt;It sounds as though you may want to start looking into threading on teh retrieval and saving of the data.&amp;nbsp; The BOs already have a property called DataLayerAccessThreads that is designed specifically for thsi purpose on saves.&amp;nbsp;&amp;nbsp; However, the retrieval of your data will needs to be taken into acount on your side.&amp;nbsp; Many times we will use a ThreadManager class to retrieve the data and show a "Retrieving Data" window or message and then populate once the data is retrieved.&amp;nbsp; There are a lot of ways to approach this particular issue, but when you are dealing with disconnected data....and especially when you are going to have such a limited bandwidth, you have to write responsible queries....the Enterprise Server can aide in squeezing out even better bandwidth in an environment like this (since at present you are talking straight to SQL Server)....regardless, if you are bringing back 2500 records (and the records may need to be modified and updated as well) you are going to be creating a bottleneck within your application.&lt;/P&gt;&lt;P&gt;I hope all of this makes sense, but this is not a BBS or framework issue...rather an application design issue that may need to be addressed in order to improve performance...this is something that all of us have to deal with from time to time (I recently reworked some logic to improve performance for this very same reason).</description><pubDate>Mon, 28 Jan 2008 13:11:46 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How do I get the XtraGrid to handle data efficiently?</title><link>http://forum.strataframe.net/FindPost13776.aspx</link><description>Btw, I cannot use a ListView control in this situation.&amp;nbsp; I would assume that it would present the data much faster.&amp;nbsp; The functionality of the grid is what I need...grouping, moving or removing or&amp;nbsp;adding columns, sorting, filtering, etc.&amp;nbsp; In addition, the printing option is quite friendly, too.&lt;/P&gt;&lt;P&gt;And, the funny thing about this is that the grid is only displaying just over 2500 items.&amp;nbsp; I don't think that is much.&amp;nbsp; Is that a lot of data for a grid to handle?&lt;/P&gt;&lt;P&gt;Bill</description><pubDate>Mon, 28 Jan 2008 12:57:47 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item></channel></rss>