private void BulkUpdateScheduleSchedule() { foreach (DataGridViewRow scheduleRow in grdMain.Rows) { lfa.pmgmt.data.DAO.Schedule.Schedule scheduleDAO = new data.DAO.Schedule.Schedule(); scheduleDAO.ConnectionString = _connectionString; scheduleDAO.Update(int.Parse(scheduleRow.Cells[0].Value.ToString()), scheduleRow.Cells[1].Value.ToString(), scheduleRow.Cells[2].Value.ToString(), scheduleRow.Cells[3].Value.ToString(), int.Parse(scheduleRow.Cells[4].Value.ToString())); scheduleDAO.EnableDisable(int.Parse(scheduleRow.Cells[0].Value.ToString()), Convert.ToBoolean(scheduleRow.Cells[6].Value.ToString())); } }