none
Is there anyway to change the scrollbar style in a ReportViewer (WebForms)? RRS feed

  • Question

  • I was wondering if there was a way to change the scrollbar behavior.  At the moment it seems to be set to overflow: auto.  I'd like to set it to overflow: scroll.  Being able to set overflow to hidden or visible on the report would be nice too.

     

    Is it possible to do this through CSS or code by setting the style?

    Tuesday, March 11, 2008 11:24 PM

All replies

  • Good question.

     

    I had never thought about this, but it looks like there is a way, this seemed to work for me for the horizontal scroll (I think that the vertical is going to be controlled by your report content, not positive):

     

    Code Snippet

     

    ReportViewer1.Style.Add("overflow","scroll")

     

     

     

    ... hope it works for you.

     

    >L<

     

     

    Sunday, March 16, 2008 4:00 PM