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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

looping records

Thread ID:

Created:

Updated:

Platform:

Replies:

34367 Sep 8,2005 09:31 AM UTC Sep 8,2005 04:16 PM UTC WinForms 3
loading
Tags: GridControl
Catinat Velmourougan
Asked On September 8, 2005 09:31 AM UTC

hi, I have a combo containing val1, val2 and val3 strings. When the user changes these values, I go and set col1 on the grid to the corresponding selected item.For example, if val1 is selected, for all records col1 is set to val1.So, foreach(Record rec in this.grid.Table.Records) { rec.SetValue("col1", val1); } This takes a lot of time when I click the combobox for the first time.From the second time it takes less time.It takes about 17 sec for the first time and teh second time less than 2 secs. Why is this variation in time? regards, catinat

Administrator [Syncfusion]
Replied On September 8, 2005 11:36 AM UTC

If you set TableDirty = true, you probably will not see the difference between teh first and second pass. But, you can greatly improve performnace by updating teh datasource directly. Here is a little sample. http://www.syncfusion.com/Support/user/uploads/GGC_SetRec_33b148e3.zip

Catinat Velmourougan
Replied On September 8, 2005 11:59 AM UTC

hi, Thanks working superfast. But im just concerned about this tabledirty = true; as whether it will affect some other part of the code. What exactly it causes? regards, catinat

Administrator [Syncfusion]
Replied On September 8, 2005 04:16 PM UTC

It tells the grid that it does not have to respond to individual changes from outside the grid. It will remain in this state until something tries to access the grid for any reason.

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.

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

;