/// <summary> /// Function to fill Datagridview /// </summary> public void CompanyGridFill() { try { DataTable dtbl = new DataTable(); CompanySP spComapny = new CompanySP(); dtbl = spComapny.CompanyViewAllForSelectCompany(); dgvSelectCompany.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show("SELCMPNY : 1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }