当前位置:编程学习 > C#/ASP.NET >>

c# TableAdapter.Fill

在c#中
        private void ToolStripButton_Click(object sender, EventArgs e)
        {
            try
            {
                this.学生表TableAdapter.Fill (this.studentIDataSet1 .学生表 ,toolStripTextBox1 .Text  );
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }

        }
错误提示Fill1”方法没有采用“2”个参数的重载

我是个学生在做实训,想用ToolStrip中Button实现查询,以toolStripTextBox1 .Text 为参数,结果显示在dataGridView1中
--------------------编程问答-------------------- 去掉第二个参数

至于要查询,那你自己写一个方法把要查询的条件评价到SQL语句中
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,