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

RadGridView ofType

2 Answers 28 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nuno
Top achievements
Rank 1
Nuno asked on 24 Jul 2013, 02:53 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 26 Jul 2013, 05:26 AM
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 >>
0
Nuno
Top achievements
Rank 1
answered on 28 Oct 2013, 08:57 AM
Thank you :)
Tags
GridView
Asked by
Nuno
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Nuno
Top achievements
Rank 1
Share this question
or