/// <summary> /// Populate the data grid with information about workers with given dealership Id /// </summary> private void PopulateDataGridViewGetWorkersByDealershipId() { dataGridView.Rows.Clear(); WorkerBusiness workerBusiness = new WorkerBusiness(); int.TryParse(txtGet.Text, out int dealershipId); var workersList = workerBusiness.GetWorkersByDealershipId(dealershipId); DataPopulator(workersList); }