private void txtMa_TextChanged(object sender, EventArgs e) { try { DataTable dt = new DataTable(); dt = ctCtr.GetData(txtCodeHD.Text.Trim()); dtgvDSHH.DataSource = dt; } catch { dtgvDSHH.DataSource = null; } return; }
private void txtMa_TextChanged(object sender, EventArgs e) { try { DataTable dt = new System.Data.DataTable(); dt = ctCtr.GetData(txtMa.Text.Trim()); dtgvDSP.DataSource = dt; } catch { dtgvDSP.DataSource = null; } }