We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Access width of Scrollbar in GridDataControl

Thread ID:





97817 Jan 11,2011 03:51 PM UTC Jan 14,2011 10:42 AM UTC WPF 2
Tags: GridControl
Ross Jackson
Asked On January 11, 2011 03:51 PM UTC


Does anyone know a way to get hold of the width (or height, if horizontal) of a scrollbar when visible in the grid. I can access the computed visiblity:

var scrollViewer = GridDataControl.Model.Views.First().Parent as ScrollViewer;
var isVisible = scrollViewer.ComputedVerticalScrollBarVisibility == Visibility.Visible;

But, I can't find a way to calculate either the size of the grid excluding the scrollbars or the width / height of the scrollbars themselves. All of the properties I would think should provide this information in ScrollViewer are zero (e.g. ScrollableWidth, HorizontalOffset, etc.)

It's a long story, but I'm working on some custom column width logic.

Many thanks

S. Kannan [Syncfusion]
Replied On January 14, 2011 10:40 AM UTC

We are investigating on this. We will let you know the outcome by 01/17/2010.

S. Kannan [Syncfusion]
Replied On January 14, 2011 10:42 AM UTC

Hi Ross,

Thanks for your interest in Syncfusion products.

We are investigating on this. We will let you know the outcome by 01/17/2010.

Please let us know if you need further information.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon