This is a migrated thread and some comments may be shown as answers.

How to set visible property of field of report to false programmatically.

2 Answers 448 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kem Arda
Top achievements
Rank 1
Kem Arda asked on 30 Jul 2009, 11:08 AM
I wantto set visible property of a field of my report to false programmatically, if user doesn't wantto see the field (it is actually summary field of related table and user may not wantto see it on report.). How can i do that?

Thanks in advance...

2 Answers, 1 is accepted

Sort by
0
Janus Pedersen
Top achievements
Rank 2
answered on 30 Jul 2009, 10:41 PM
It is somthing like this
textBox2.Visible = false

The name of the object You will hide dot Visible=false; // to hide and true to show.

Janus S. Andersen

Denmark

0
Kem Arda
Top achievements
Rank 1
answered on 31 Jul 2009, 12:59 PM
I accomplished it using following code:

Telerik.Reporting.

TextBox txt = (ReportViewer.Report as Report).Items.Find("DataTextBox", true)[0] as Telerik.Reporting.TextBox;

 

txt.Visible =

false;

 

Report is dll of my ClassLibrary which i refer to in my project.


Thanks...

 

Tags
General Discussions
Asked by
Kem Arda
Top achievements
Rank 1
Answers by
Janus Pedersen
Top achievements
Rank 2
Kem Arda
Top achievements
Rank 1
Share this question
or