/// <summary> /// Function to fill all rack in datagridview /// </summary> public void GridFill() { try { RackSP spRack = new RackSP(); DataTable dtblRack = new DataTable(); dtblRack = spRack.RackSearch(txtRackNameSearch.Text.Trim(), cmbGodownSearch.Text.ToString()); dgvRack.DataSource = dtblRack; } catch (Exception ex) { formMDI.infoError.ErrorString = "R5:" + ex.Message; } }
/// <summary> /// Function to fill all rack in datagridview /// </summary> public void GridFill() { try { RackSP spRack = new RackSP(); DataTable dtblRack = new DataTable(); dtblRack = spRack.RackSearch(txtRackNameSearch.Text.Trim(), cmbGodownSearch.Text.ToString()); dgvRack.DataSource = dtblRack; } catch (Exception ex) { MessageBox.Show("R5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }