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.
Unfortunately, activation email could not send to your email. Please try again.

width of grid inner scroll bar

Thread ID:

Created:

Updated:

Platform:

Replies:

109705 Jun 30,2013 11:10 AM Jul 3,2013 11:59 PM Windows Forms 1
loading
Tags: GridControl
Arshad
Asked On June 30, 2013 11:10 AM

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

Athiram S [Syncfusion]
Replied On July 3, 2013 11:59 PM

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

CONFIRMATION

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.

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.

;