打印本文 打印本文 关闭窗口 关闭窗口
第五课 使用断开数据--DataSet和SqlDataAdapter(翻译)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数16132  更新时间:2007/11/14 13:12:43  文章录入:mintao  责任编辑:mintao
               dgCustomers.DataSource = dsCustomers;

               dgCustomers.DataMember = TableName;

 

               // create update button

               Button btnUpdate = new Button();

               btnUpdate.Text = "Update";

               btnUpdate.Location = new Point(

                       this.ClientRectangle.Width/2 - btnUpdate.Width/2,

                       this.ClientRectangle.Height - (btnUpdate.Height + 10));

               btnUpdate.Click += new EventHandler(btnUpdateClicked);

 

               // make sure controls appear on form

               Controls.AddRange(new Control[] { dgCustomers, btnUpdate });

        }

 

 << 上一页  [11] [12] [13] [14] [15] [16] [17] [18]  下一页

打印本文 打印本文 关闭窗口 关闭窗口