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.
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 IlievSoftware DeveloperInfragistics, Inc.
I am using Infragistics2.Win.UltraWinGrid.v8.2 , version 8.2.20082.1000. attached image of all the infragistics ref.
the weird part is we didnt do ny changes, all was working fine without any issue. now suddenly, it is taking lot of time almost 25 mins to update 180 records in grid.
we are using the same version since so many years almost 6-7 yrs