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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridControl - changing the button Text of a PushButton CellType

Thread ID:





22895 Dec 28,2004 07:00 PM UTC Dec 29,2004 07:00 AM UTC WinForms 1
Tags: GridControl
Paul Laudeman
Asked On December 28, 2004 07:00 PM UTC

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 07:00 AM UTC

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"


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