private void LoadData() { Updating = true; try { dataSet1.Clear(); foreach (clsSensor Sen in Sensors.Items) { DataRow Rw = dataSet1.Tables[0].NewRow(); Rw[0] = Sen.ID; Rw[1] = Sen.BinNum; Rw[2] = Sen.CableNum; Rw[3] = Sen.SensorNum; Rw[4] = Sen.Enabled; Rw[5] = Sen.OffSet; Rw[6] = Sen.LastTemp(); Rw[7] = Sen.LastTime(); Rw[8] = Sen.SensorAddress; Rw[9] = Sen.BinDescription(true); dataSet1.Tables[0].Rows.Add(Rw); } } catch (Exception ex) { mf.Tls.WriteErrorLog("frmSensors:LoadData " + ex.Message); } Updating = false; }