コード例 #1
0
        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;
        }
コード例 #2
0
        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());
            }
        }
コード例 #3
0
        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());
            }
        }