/// <summary> /// Function to fill datagridview /// </summary> public void GridFill() { try { BrandSP spBrand = new BrandSP(); DataTable dtblBrand = new DataTable(); dtblBrand = spBrand.BrandSearch(txtBrandNameSearch.Text.Trim()); dgvBrand.DataSource = dtblBrand; } catch (Exception ex) { formMDI.infoError.ErrorString = "BR7:" + ex.Message; } }
/// <summary> /// Function to fill datagridview /// </summary> public void GridFill() { try { BrandSP spBrand = new BrandSP(); DataTable dtblBrand = new DataTable(); dtblBrand = spBrand.BrandSearch(txtBrandNameSearch.Text.Trim()); dgvBrand.DataSource = dtblBrand; } catch (Exception ex) { MessageBox.Show("BR7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }