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

GridPushButtonCell Text in bound grid

Thread ID:





3305 Mar 12,2003 08:41 AM UTC Mar 12,2003 08:54 AM UTC WinForms 1
Tags: GridControl
Asked On March 12, 2003 08:41 AM UTC

How can i set the text of a pushbutton column in a bound grid? Actually, it is a bound column, and I expected the text value to appear on the button, but seems to me it just drawn over it.

Administrator [Syncfusion]
Replied On March 12, 2003 08:54 AM UTC

The text displayed in a PushButton cell is the GridStyleInfo.Description property. In a databound grid, the values from the datasource go into the GridStyleInfo.Text property, and so this is why you don't see the datasource value on the PushButton. If you want to see this, handle the PrepareViewStyleInfo event, and if e.Style.CellType equals "PushButton", then set e.Style.Description equal to e.Style.Text.


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