/// <summary> /// 7. Loads the grid view with combo box agency selector /// </summary> private void cmbAgencies_SelectedIndexChanged(object sender, EventArgs e) { try { clsInfo Controller = new clsInfo(); // static variables agency stringcmboxagency = cmbAgencies.Text; stringdbaseagency = Controller.ReaderAgency(stringcmboxagency); gvClient.DataSource = Controller.selectqclientByAgency(stringdbaseagency); CleanTextboxes(); btnRefresh.Text = "Refresh >>>"; } catch (Exception ex) { MessageBox.Show("Error : " + " " + ex.Message); } }