Mfwamba Tshimanga

Mfwamba Tshimanga

  • NA
  • 155
  • 46k

Need to refresh my report datas. But doesnt

Jun 14 2014 12:24 PM
Hi!
 
I would like to actualize my datas after making a filter in Report viewer. See my codes:
These first codes works when I do my filter. 
private void button1_Click(object sender, EventArgs e)
{
this.StudTableAdapter.Fill(this.DataSet1.Stud, textBox1.Text);
this.reportViewer1.RefreshReport();
}
Now these codes doesnt work. But I would like to refresh my datas after the filter. See what I do. But Its give me a error message:
No overload for method 'Fill' takes 1 arguments 
private void button2_Click(object sender, EventArgs e)
{
this.StudTableAdapter.Fill(this.DataSet1.Stud);
this.reportViewer1.RefreshReport();
}
}