Israel

Israel

  • NA
  • 1.3k
  • 204.5k

Reportviewer on one textbox

Jul 3 2014 11:00 AM
Hi!

I make all the procedure to make my report on time and its call it normally (I am using reportviewer on C#2010).
Then on my form I put a textbox, a button and a reportviewer. on my xsd file (rptSellDataSet1) I configure like this to make filter from my textbox1 but its doesn't make it:
select * from bill
where name = 'textbox1.Tex
t'

But there is problem... let me explain something. When this code are in "load event" its working perfectly. But becarfull only when I put the same code without the "textBox1.Text":
this.BillTableAdapter.Fill(this.rptBillDataSet1.Bill,textBox1.Text);
But when I put it on "click Event" its shown this message and stark:

No overload for method 'Fill' takes 2 arguments

First, how can I resolv this problem (No overload for method 'Fill' takes 2 arguments)
Secondly, after resolving how can I make filter from my texBox1

Thanx

Answers (1)