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.

color of combobox in a databoundgrid

Thread ID:





18730 Sep 8,2004 06:30 AM Sep 8,2004 09:05 AM Windows Forms 4
Tags: GridControl
Asked On September 8, 2004 06:30 AM

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 07:35 AM

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 08:30 AM

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 08:45 AM

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 09:05 AM

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.

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.