Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
our production application from yesterday, is not responding, when we try to update the data grid with values.
posted

Hi,

we are trying to update the datagrid with all the values. this code has been working since many years. for doing an update it is taking almost 20-25 mins. and the application start not responding.

Below is the kind of code, that we are trying to update:

foreach (UltraGridRow gridrow in this.NavigationGrid.DetailsGrid.DisplayLayout.Bands[0].GetRowEnumerator(GridRowType.DataRow))
{
if ((string)CustomerGroupCmbox.SelectedValue != SELECT && gridrow.Band.Columns.Exists(Header_customer_group))
{
gridrow.Cells[Header_customer_group].Value = CustomerGroupCmbox.SelectedValue;
}

if (cbShipToContact.Text != SELECT && gridrow.Band.Columns.Exists(NppColumnNames.ShipToContact))
{
gridrow.Cells[NppColumnNames.ShipToContact].Value = cbShipToContact.Text;
}
if (gridrow.Band.Columns.Exists(NppColumnNames.DoNotShipLabel))
{
if (Donotshipflagchbx.Checked)
gridrow.Cells[NppColumnNames.DoNotShipLabel].Value = "true";
else
gridrow.Cells[NppColumnNames.DoNotShipLabel].Value = "false";
}

And while debugging i am getting this exception: 

The CLR has been unable to transition from COM context 0x1bdbe0c8 to COM context 0x1bdbe1f0 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.

Parents
  • 2680
    Offline posted

    Hello Shyam,

    Thank you for contacting Infragistics support.

    I suspect you are using a retired version of our controls. Which version do you use? What changes did you make to lead to this error? Have you updated the version of our controls? You can provide any additional information you think is relevant.

    I am looking forward to hearing from you.

    Best Regards,
    Tihomir Iliev
    Software Developer
    Infragistics, Inc.

Reply Children