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

Question about celltypes such as PushButton and ComboBox

Thread ID:





13854 May 12,2004 12:21 PM UTC May 12,2004 03:28 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On May 12, 2004 12:21 PM UTC

I noticed two things about these cell types that I want to change. 1) Their color 2) Their appearance. With #1, I simply don''t want the controls to be the same color as the systm colors. I want to be able to set the color. With regards to #2, even if I set the appearance to flat, when you mouse over it will draw a bevelled look. I do not want any bevelling what so ever. Does anyone know a way to modify this? I suppose I could do this at the source level but I''m looking for something less draconian. I believe flat should be flat.

Administrator [Syncfusion]
Replied On May 12, 2004 03:28 PM UTC

Currently, there are no property settings that control the backcolor and feedback actions of a button cell. For a pushbutton, you can use a "Control" celltype and put a Windows Forms pushbutton into a cell in that manner. This would only be effective if you had a few such cells. In general, if you want to control the properties, you would have to derive a cell control and manage things yourself. In the Grid\Samples\In Depth\CellButtons sample, there is a derived cell button that displays a bitmap button. You could modify that to either use a bitmap button to color things, or draw you own button in the OnDraw override in the derived renderer class.


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