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

width of grid inner scroll bar

Thread ID:





109705 Jun 30,2013 03:10 PM UTC Jul 4,2013 03:59 AM UTC WinForms 1
Tags: GridControl
Asked On June 30, 2013 03:10 PM UTC

Is there anything similar to below code that would allow me control the size of the syncfusion data grid.

FieldInfo fi = this.GetType().GetField("m_sbVert", 
((VScrollBar)fi.GetValue(this)).Width = myWidth;
fi = this.GetType().GetField("m_sbHorz", 
((HScrollBar)fi.GetValue(this)).Height = myHeight;

I did see the example of suppressing the grid control scroll bar and add an external scroll bar. But I would like to check if its possible to control the width without needing to add an external scroll bar

Athiram S [Syncfusion]
Replied On July 4, 2013 03:59 AM UTC

Hi Arshad,

Thanks for your interest in Syncfusion Products.

we can set the size of scroll bar using the following code:

this.vScrollBar1.Size = new System.Drawing.Size(37,64);

PLease let me know if you have any concerns.

Athiram S


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