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.
Syncfusion Feedback

Record.setvalue is taking more time

Thread ID:

Created:

Updated:

Platform:

Replies:

55691 Feb 2,2007 04:32 PM UTC Feb 2,2007 05:42 PM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 2, 2007 04:32 PM UTC

Hi

I am using the
rec.SetValue(ColumnName,columnValue); function of the record object to assign the value to the partucular record cell. It is taking long time. If i have 47 records in to update in grid grouping control then it is taking more than minutes...

Please help me to improve the performance of the record,setvalue function OR tell me any other alternative way to do this

Please help

Thanks
Harshad

Administrator [Syncfusion]
Replied On February 2, 2007 05:42 PM UTC

Hi Harshad,

Try calling Record.SetValue method between the Record.BeginEdit and Record.EndEdit call.And also you can handle the gridGroupingControl1.SourceListListChanged event and set the ShouldResetCurrentRecord to false. By default this is true and will be resetting the current record for every change to see if it helps with the performance.

record.BeginEdit();
record.SetValue("ColumnName","columnValue");
record.EndEdit();

this.gridGroupingControl1.SourceListListChanged += new TableListChangedEventHandler(gridGroupingControl1_SourceListListChanged);

private void gridGroupingControl1_SourceListListChanged(object sender, TableListChangedEventArgs e)
{
e.ShouldResetCurrentRecord = false;
e.ShouldIgnoreReset = true;
}

Also refer to the below attachment for more details.
PerformanceSamplesANDdesc.zip

Best Regards,
Haneef

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

;