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. Image for the cookie policy date
close icon

width of grid inner scroll bar

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", 
BindingFlags.NonPublic|BindingFlags.GetField|BindingFlags.
Instance);
((VScrollBar)fi.GetValue(this)).Width = myWidth;
fi = this.GetType().GetField("m_sbHorz", 
BindingFlags.NonPublic|BindingFlags.GetField|BindingFlags.
Instance);
((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

1 Reply

AS Athiram S Syncfusion Team 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.

Regards,
Athiram S

Loader.
Live Chat Icon For mobile
Up arrow icon