c# - background worker not responding in our code -


i have following code , telerik grid records 1266880 background worker hangout 1 minutes try many ways cannot success know application not hang

populateui(list<datarow> list) {      this.invoke(new methodinvoker(delegate                     {                         int count = list.count;                         grdfares.rowcount = count;                         // grdfares.beginupdate();                          (int = 0; < grdfares.rowcount; i++)                         {                              grdfares.rows[i].cells[cols.id].value = list[i].itemarray[0].tostr();                             grdfares.rows[i].cells[cols.fromlocation].value = list[i].itemarray[7].tostring();                             grdfares.rows[i].cells[cols.tolocation].value = list[i].itemarray[8].tostring();                             grdfares.rows[i].cells[cols.fare].value = list[i].itemarray[4].tostring();                             grdfares.rows[i].cells[cols.rowno].value = 0;                             //  grdfares.rows[i].cells[cols.origntypeid].value = list[i].originlocationtypeid;                             //   grdfares.rows[i].cells[cols.destinationtypeid].value = list[i].destinationlocationtypeid;                             grdfares.rows[i].cells[cols.vehicletype].value = list[i].itemarray[2].tostring();                             grdfares.rows[i].cells[cols.vehicleid].value = list[i].itemarray[11].tostring();                           }                             }));           } 


Comments