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

Alternate scrollbar styles possible?

Thread ID:

Created:

Updated:

Platform:

Replies:

77531 Nov 5,2008 09:08 AM UTC Nov 24,2008 08:57 PM UTC WinForms 2
loading
Tags: GridControl
Maxim Software Systems
Asked On November 5, 2008 09:08 AM UTC

Is it possible to get the GridControl to draw scrollbars differently than the system default style?

I'd like to get the scrollbars to have a "flat" appearance for my project. Is this doable?


Maxim Software Systems
Replied On November 10, 2008 12:14 PM UTC

So, I'm guessing this isn't possible?


Nirmal Raja [Syncfusion]
Replied On November 24, 2008 08:57 PM UTC

Hi Don,

Thank you for your interest in Syncfusion controls.

The scroll bar can be made appear to be in different style by making the scrollbar mode to be flat.
A scrollbar has to be derived independent of the grid control and then it has to be added with Grid.

Please refer the sample code below:

FlatHScrollBar hFlatScrollBar1 = hFlatScrollBar1 = new FlatHScrollBar();

this.hFlatScrollBar1.Appearance = FlatScrollBarStyle.Encarta;

FlatHScrollBar vFlatScrollBar1 = new Syncfusion.Windows.Forms.FlatVScrollBar();

this.vFlatScrollBar1.Appearance = Syncfusion.Windows.Forms.FlatScrollBarStyle.Encarta;

gridControl1.HScrollBehavior = GridScrollbarMode.Shared;

gridControl1.VScrollBehavior = GridScrollbarMode.Shared;

gridControl1.UseSharedScrollBars = true;

gridControl1.VScrollBar.InnerScrollBar = vFlatScrollBar1;

gridControl1.HScrollBar.InnerScrollBar = hFlatScrollBar1;


Let me know if you have any queries.

Regards,
Nirmal


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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;