ReportViwer refresh problem
Hi to everyone. I have textbox on my form and a report viewer with parametr binded to textbox.Text value. How i can do a refresh of text in report viwer parametr when i input some text in textbox? Please help... I bind my parametr in code: ReportParameter rp0 = new ReportParameter("rp1",textBox1.Text); this.reportViewer1.LocalReport.SetParameters(rp0); this.reportViewer1.RefreshReport(); qqq
May 13th, 2012 10:01am

Hi There Please change the autopostback property of your textbox to true and see if it work or you can submit your form using JavaScript when something change in the textbox Please let me know if you have any questions Many Thanks Syed Qazafi Anjum Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.
Free Windows Admin Tool Kit Click here and download it now
May 13th, 2012 6:35pm

Thanks for reply. My project is local windows forms based, i dont work with web. I can't find autopostback property in windows forms textbox. Does anybody know how to solve that problem?qqq
May 14th, 2012 10:05am

Hi there You can use TextChanged event of your textbox in Window form. just assign the value to the parameter on this event Please let me know if you have any questions Many Thanks Syed Qazafi Anjum Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful. you can also use lostfocus or leave event of textbox
Free Windows Admin Tool Kit Click here and download it now
May 14th, 2012 10:32am

Thanks for your time man!qqq
May 28th, 2012 5:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics