【发布时间】:2020-02-02 02:09:05
【问题描述】:
当我在 form1.form2 的文本框中输入 id 时,报告查看器显示了记录。但它不会显示所有数据,显示表中的内容。
我已经创建了 dataset1 并加载了值。
Form1
Form2 frm2 = new Form2();
frm2.studentid = textBox1.Text;
frm2.Show();
Form2
string id = studentid;
this.recordsTableAdapter.FillBy(this.DataSet1.records, id);
// by **this line Gereate sub for by** i am a beginner of Report viewer
this.recordsTableAdapter.Fill(this.DataSet1.records);
this.reportViewer1.RefreshReport();
private string id;
public string studentid
{
get { return id; }
set { id = value; }
}
我编写查询的数据集
SELECT id, firstname, lastname FROM dbo.records where id = ?
【问题讨论】:
-
你遇到了什么错误?
-
this.recordsTableAdapter.FillBy(this.DataSet1.records, id);通过这一行 Gereate sub for by
-
你能不能再描述一下问题,我无法理解“this line Gereate sub for by”
-
WindowsFormsApplication27.exe 中出现“System.NotImplementedException”类型的未处理异常附加信息:方法或操作未实现。
-
i Gereate sub for by fillBy 然后我在文本框上输入 id 单击查找按钮显示错误 n 在 WindowsFormsApplication27.exe 中发生“System.NotImplementedException”类型的未处理异常
标签: c# winforms reportviewer