标题:关于dataBindings的问题?????
只看楼主
xzy544262640
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2010-11-28
结帖率:0
 问题点数:0 回复次数:1 
关于dataBindings的问题?????
SqlConnection sqlconn = new SqlConnection();
            sqlconn.ConnectionString = connString;
            string sql = "select * from manager_Info";
            SqlDataAdapter myAdapter = new SqlDataAdapter(sql, sqlconn);
            DataSet ds = new DataSet();
            myAdapter.Fill(ds, "manager_Info");
            dataGridView_manager_info.DataSource = ds;
            dataGridView_manager_info.DataMember = "manager_Info";
            textBox_manager_NO.DataBindings.Add("text", ds, "manager_Info.Manager_ID");
            textBox_manager_user.DataBindings.Add("Text", ds, "manager_Info.Manager_UserName");
            textBox_manager_password.DataBindings.Add("Text", ds, "manager_Info.Manager_PassWord");
            textBox_manager_tele.DataBindings.Add("Text", ds, "manager_Info.Manager_Tele")

报错…
2011-06-05 12:17
xzy544262640
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2010-11-28
得分:0 
2011-06-05 12:31



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-341946-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.289536 second(s), 10 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved