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