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

color of combobox in a databoundgrid

Thread ID:





18730 Sep 8,2004 10:30 AM UTC Sep 8,2004 01:05 PM UTC WinForms 4
Tags: GridControl
Asked On September 8, 2004 10:30 AM UTC

i need to set the color of the button (& scrollbar) of a combobox in a datagrid thanks Shri

Administrator [Syncfusion]
Replied On September 8, 2004 11:35 AM UTC

Unless you are using a themed operating system and set grid.ThemesEnabled = true, there is no simple way to change the look of combobox buttons, and it would be even harder to change the look of the combobox scrollbar. Your only option would be to try the draw the buttons yourself. There are several ways you can attempt this. For example, you could hide the buttons using the ShowButtons style property, and then handle the CellDrawn event and draw the buttons there yourself. Using CellDrawn, you would probably lose the Feedback features of the button. More work would be deriving a cell control where you draw your own button. You can look at the grid\samples\in depth\cellbuttons for examples of deriving cell controls based on buttons.

Replied On September 8, 2004 12:30 PM UTC

hi, Thanks, if i set the themesenabled = true and the appilcation is run on an OS which doesnt support the themes will my code break or the default setting be applied. how about the changing the color of the ButtonAdv does it work the same way thanks Shri

Administrator [Syncfusion]
Replied On September 8, 2004 12:45 PM UTC

Our samples ship with ThemesEnabled and they work on non-XP systems. So, enabling these should not cause any problems. As far as ButtunAdv, checking with a Tool engineer, he says that control is not really productized yet. So, I am not sure that it will respond to setting its FlatStyle or not.

Administrator [Syncfusion]
Replied On September 8, 2004 01:05 PM UTC

thanks Shri


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

Live Chat Icon For mobile
Live Chat Icon