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.
Unfortunately, activation email could not send to your email. Please try again.

Performance tip: Override PaneDesc

Thread ID:

Created:

Updated:

Platform:

Replies:

25486 Feb 28,2005 12:47 PM Feb 28,2005 01:00 PM Windows Forms 1
loading
Tags: GridControl
TJ
Asked On February 28, 2005 12:47 PM

Here''s a speed enhancement that other users of this forum might find useful: The Syncfusion source code (up to and including 3.0.1.0 at least) is filled with debug-trace statements that expensively evaluate a "PaneDesc" property, then promptly discard it because the trace flag is off. If you don''t plan to turn the trace flag on, you can speed up the grid by overriding PaneDesc: public class MyGridControl : GridControl { public override string PaneDesc { get { return "Whatever"; // Any invariant string } } } This is in the Open Issues list as Defect #43, but I thought I''d point out that there''s an easy workaround. Cheers, Tom

TJ
Replied On February 28, 2005 01:00 PM

Also, in my application I''ve overrided Update: public override void Update() { } to avoid repainting the grid too often while navigating with the arrow keys. Your mileage may vary... Tom

CONFIRMATION

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.

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.

;