/// <summary> /// Function to fill master grid /// </summary> public void GridFill() { try { DataTable dtblAccountName = new DataTable(); AccountGroupSP spAccountGroup = new AccountGroupSP(); if (cmbGroupUnderSearch.Text.Trim() == string.Empty) { cmbGroupUnderSearch.Text = "All"; } dtblAccountName = spAccountGroup.AccountGroupSearch(txtAccountGroupNameSearch.Text.Trim(), cmbGroupUnderSearch.Text); dgvAccountGroup.DataSource = dtblAccountName; } catch (Exception ex) { MessageBox.Show("AG1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill master grid /// </summary> public void GridFill() { try { DataTable dtblAccountName = new DataTable(); AccountGroupSP spAccountGroup = new AccountGroupSP(); if (cmbGroupUnderSearch.Text.Trim() == string.Empty) { cmbGroupUnderSearch.Text = "All"; } dtblAccountName = spAccountGroup.AccountGroupSearch(txtAccountGroupNameSearch.Text.Trim(), cmbGroupUnderSearch.Text); dgvAccountGroup.DataSource = dtblAccountName; } catch (Exception ex) { formMDI.infoError.ErrorString = "AG1:" + ex.Message; } }