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

3 posts, 0 answers
  1. Kem Arda
    Kem Arda avatar
    49 posts
    Member since:
    Jul 2009

    Posted 30 Jul 2009 Link to this post

    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. Janus Pedersen
    Janus Pedersen avatar
    34 posts
    Member since:
    Dec 2008

    Posted 30 Jul 2009 Link to this post

    It is somthing like this
    1 textBox2.Visible = false

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

    Janus S. Andersen

    Denmark

  3. DevCraft banner
  4. Kem Arda
    Kem Arda avatar
    49 posts
    Member since:
    Jul 2009

    Posted 31 Jul 2009 Link to this post

    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...

     

Back to Top