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

GridDataBoundGrid Button Style

Thread ID:





24979 Feb 15,2005 08:45 PM UTC Feb 15,2005 11:25 PM UTC WinForms 1
Tags: GridControl
Cheunhui Wang
Asked On February 15, 2005 08:45 PM UTC

if the bound object has a "Brws" property, I make that column buttons: GridBoundColumn c = grid.Binder.InternalColumns["Brws"]; if (c != null) { GridStyleInfo info = c.StyleInfo; info.CellType = "PushButton"; info.Description = "Brws"; } This works fine except, when i modify a grid style through PropertyGrid, for example, back color. the buttons immediately become text boxes. Is there a way to work around this, or if I should handle this in a different way? Thanks, Chunhui

Administrator [Syncfusion]
Replied On February 15, 2005 11:25 PM UTC

We currently do not support button BackColor through setting style properties. If you want to set a button backcolor, you can handle the DrawCellButtonBackColor event. Here is a forum thread on this. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=19312


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