private void CbxTableName_SelectedIndexChanged(object sender, EventArgs e) { NewAddClass frm = new NewAddClass(); DataTable dt = frm.GetColumnsType(CbxTableName.Text.Trim(), CboSoureName.Text.Trim(), CboLoadSql.Text.Trim()); dataGridView1.DataSource = dt; dataGridView1.ReadOnly = true; }
private void CboSoureName_SelectedIndexChanged(object sender, EventArgs e) { NewAddClass frm = new NewAddClass(); DataTable dt = frm.ReturnTable(CboSoureName.Text.Trim(), CboLoadSql.Text.Trim()); CbxTableName.Items.Clear(); foreach (DataRow dr in dt.Rows) { CbxTableName.Items.Add(dr[0].ToString()); } }
private void StartLoad() { NewAddClass frm = new NewAddClass(); DataTable dt = frm.ReturnTableName(CboLoadSql.Text.Trim()); CboSoureName.Items.Clear(); foreach (DataRow dr in dt.Rows) { CboSoureName.Items.Add(dr[0].ToString()); } }