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

GridControl - changing the button Text of a PushButton CellType

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

1 Reply

AD Administrator Syncfusion Team 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"

Loader.
Live Chat Icon For mobile
Up arrow icon