Posted 12 January 2023, 1:57 am EST
Hello,
I am using C1FlexGrid for .net 4.8. How can I see, if the vertical scrollbar is currently shown.
Thank you
Forums Home / ComponentOne / WPF Edition
Posted by: lutz.boscher on 12 January 2023, 1:57 am EST
Posted 12 January 2023, 1:57 am EST
Hello,
I am using C1FlexGrid for .net 4.8. How can I see, if the vertical scrollbar is currently shown.
Thank you
Posted 12 January 2023, 4:48 pm EST
Hi,
As we understand, you want to keep track of Vertical ScrollBar visibility.
In order to achieve this requirement, you need to get ScrollBar from Flexgrid’s template.(see code snippet)
var verticalScrollbar =grid.Template.FindName("_sbV",grid) as ScrollBar;
MessageBox.Show("Vertical ScrollBar is : "+verticalScrollbar.Visibility);
Please refer the attached sample :
FlexGridDemo.zip
Best Regards,
Nitin
Posted 13 January 2023, 3:46 am EST
Hello,
that is, what I am looking for. It works.
Thank you