RadGridView ofType

3 posts, 1 answers
  1. Nuno
    Nuno avatar
    2 posts
    Member since:
    May 2013

    Posted 24 Jul 2013 Link to this post

    Hello,

    I used to validate the presence of the scrollbars in the DataGridView by doing this:


    var scrollBar = gvBrand.Controls.OfType<VScrollBar>().First();


    but with the RadGridView I'm unable to do this... 

    Is there an alternative ?

    Thank you
  2. Answer
    Stefan
    Admin
    Stefan avatar
    2911 posts

    Posted 26 Jul 2013 Link to this post

    Hi Nuno,

    Thank you for writing.

    You can use the following properties to determine the visibility of scrollbar(s) in RadGridView:
    radGridView1.TableElement.VScrollBar.Visibility
    radGridView1.TableElement.HScrollBar.Visibility

    I hope this helps.
     

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. Nuno
    Nuno avatar
    2 posts
    Member since:
    May 2013

    Posted 28 Oct 2013 Link to this post

    Thank you :)
Back to Top