Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 17th, 2007, 07:48 AM
GS GS is offline
Authorized User
 
Join Date: Sep 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datagrid performance problems

I have a datagrid and when selecting a cell which is a dropdown list response time is about 5 minutes for the values in the list to display.

Looking through the code the line which is causing the delay is:

grid.BeginEdit(false);

Is there any other way of making the cell read only? For information the dropdown list contains around 3000 lookup values.

Any help would be appreciated.

Regards
GS
 
Old April 18th, 2007, 03:05 AM
GS GS is offline
Authorized User
 
Join Date: Sep 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have investigated further, and realised there is some iteration after which is causing the delay.

A snippet of the iteration is:

foreach (MsProject.LookupTableEntry entry in outlineCode.LookupTable)
{
    if (entry.Name.Equals(value))
    {
           application.ActiveProject.ProjectSummaryTask.SetFi eld(
                application.FieldNameToFieldConstant(fieldName, MsProject.PjFieldType.pjTask),
                      entry.FullName
                      );
           found = true;
           break;
        }
}

Is there anything I could do to speed up the process? Any help would be appreciated.
Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Extreme performance problems with a repeating tabl gicio Infopath 0 November 18th, 2007 06:21 PM
Problems with datagrid (plizzz help) Muzzy ASP.NET 1.0 and 1.1 Basics 8 September 26th, 2006 04:29 PM
Datagrid Problems bourne74 ASP.NET 1.0 and 1.1 Basics 3 January 10th, 2006 05:41 PM
Problems using collection with datagrid i9796674 C# 1 August 8th, 2005 08:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.