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.

GridControl - changing the button Text of a PushButton CellType

Thread ID:

Created:

Updated:

Platform:

Replies:

22895 Dec 28,2004 02:00 PM Dec 29,2004 02:00 AM Windows Forms 1
loading
Tags: GridControl
Paul Laudeman
Asked On December 28, 2004 02:00 PM

Hello, I can''t seem to figure out how to change the button text in the "CellButtonClicked" event of my GridControl. I have the CellType defined as "PushButton" and in the CellButtonClicked event I try changing the text of the button but the change does not appear on the grid. For example, e.Button.Text = "abc" or _grid(e.RowIndex, e.ColIndex).Text = "abc" both do not work. I''ve also tried calling RefreshRange on the cell itself with no luck. This should be simple to do - I have access to the Button through the GridCellButtonClickedEventArgs class but I am not having any luck. Thanks for any direction, -Paul

Administrator [Syncfusion]
Replied On December 29, 2004 02:00 AM

The text displayed on the PushButton in a grid cell is controlled through the GridStyleInfo.Description property for the cell. So, try setting Me.gridControl1(e.RowIndex, e.ColIndex).Description = "abc"

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.

;