You could do the update safely with the following:
public delegate void UpdateStatusDelegate(StatusData data); public void UpdateStatus(StatusData data) { if (!this.radGridView1.InvokeRequired) { UpdateStatus0(data); } else { UpdateStatusDelegate del = new UpdateStatusDelegate(UpdateStatusRowStatus); this.radGridView1.Invoke(del, new object[] { data }); } } private void UpdateStatus0(StatusData data) {//do actual update thing }
Here 'radGridView1' is the grid view control (which is a control in Telerik's Winform library).
You should NOT simply call UpdateStatus0(). Doing that will give you exception at runtime.