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.

GridPushButtonCell Text in bound grid

Thread ID:

Created:

Updated:

Platform:

Replies:

3305 Mar 12,2003 03:41 AM Mar 12,2003 03:54 AM Windows Forms 1
loading
Tags: GridControl
pal
Asked On March 12, 2003 03:41 AM

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 03:54 AM

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.

CONFIRMATION

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.

;