private void _timerEvent1(object Source, System.Timers.ElapsedEventArgs e) { SetText(txtPendingRecords, WorkerProcess.GetPendingDataCount().ToString()); gridFlights.Invoke(new Action(() => { ResetFlightsGrid(); int Row = 0; foreach (String Key in WorkerProcess.Keys()) { Row++; gridFlights.Rows.Insert(Row); for (var i = 0; i <= 9; i++) { gridFlights[Row, i] = WorkerProcess.Flight(Key).Cell(i); } } gridFlights.AutoSizeCells(); })); }