/// <summary> /// GridFill Function /// </summary> public void GridFill() { try { ProductGroupSP spProductGroup = new ProductGroupSP(); DataTable dtbl = new DataTable(); dtbl = spProductGroup.ProductAndUnitViewAllForGridFill(Convert.ToDecimal(cmbProductGroup.SelectedValue.ToString()), txtProductCode.Text.Trim(), txtProductName.Text.Trim()); dgvStandardRate.DataSource = dtbl; } catch (Exception ex) { formMDI.infoError.ErrorString = "SR3" + ex.Message; } }
/// <summary> /// GridFill Function /// </summary> public void GridFill() { try { ProductGroupSP spProductGroup = new ProductGroupSP(); DataTable dtbl = new DataTable(); dtbl = spProductGroup.ProductAndUnitViewAllForGridFill(Convert.ToDecimal(cmbProductGroup.SelectedValue.ToString()), txtProductCode.Text.Trim(), txtProductName.Text.Trim()); dgvStandardRate.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show("SR3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }