private void frmNuocSX_Load(object sender, EventArgs e) { DataTable dtNsx = new DataTable(); dtNsx = nsxCtrl.getData(); dgvds.DataSource = dtNsx; binding(); }
private void cmbnsx_MouseClick(object sender, MouseEventArgs e) { DataTable dtNsx = new DataTable(); dtNsx = nsxCtrl.getData(); cmbnsx.DataSource = dtNsx; cmbnsx.DisplayMember = "TENNSX"; }