/// <summary> /// Function to fill the grid to view all the product groups /// </summary> private void GridFill() { try { DataTable dtbl = new DataTable(); ProductGroupSP spProducttGroup = new ProductGroupSP(); ProductGroupInfo info = new ProductGroupInfo(); if (cmbUnderSearch.Text == "") { cmbUnderSearch.Text = "All"; } dtbl = spProducttGroup.ProductGroupViewForGridFill(txtProductGroupSearch.Text, cmbUnderSearch.Text); dgvProductGroup.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show("PG9:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill the grid to view all the product groups /// </summary> private void GridFill() { try { DataTable dtbl = new DataTable(); ProductGroupSP spProducttGroup = new ProductGroupSP(); ProductGroupInfo info = new ProductGroupInfo(); if (cmbUnderSearch.Text == "") { cmbUnderSearch.Text = "All"; } dtbl = spProducttGroup.ProductGroupViewForGridFill(txtProductGroupSearch.Text, cmbUnderSearch.Text); dgvProductGroup.DataSource = dtbl; } catch (Exception ex) { formMDI.infoError.ErrorString = "PG8:" + ex.Message; } }
/// <summary> /// Function to fill the grid to view all the product groups /// </summary> private void GridFill() { try { DataTable dtbl = new DataTable(); ProductGroupSP spProducttGroup = new ProductGroupSP(); ProductGroupInfo info = new ProductGroupInfo(); if (cmbUnderSearch.Text == "") { cmbUnderSearch.Text = "All"; } dtbl = spProducttGroup.ProductGroupViewForGridFill(txtProductGroupSearch.Text, cmbUnderSearch.Text); dgvProductGroup.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show("PG9:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }