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

color of combobox in a databoundgrid

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

4 Replies

AD Administrator Syncfusion Team 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.

SH Shri 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

AD Administrator Syncfusion Team 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.

AD Administrator Syncfusion Team September 8, 2004 01:05 PM UTC

thanks Shri

Live Chat Icon For mobile
Up arrow icon