About SfGrid GridCommandColumn Button

Hi Support,

I need to control the GridCommandColumn in the backend of the data grid in RowDataBound, such as Edit or Delete ButtonOption , the property Disabled or css is disabled, what is the best way to do this?


Thanks!

Jacky


Image_1111_1743489231154

Image_1978_1743489287651


3 Replies

GR Guhanathan Ramanathan Syncfusion Team April 2, 2025 09:35 AM UTC

Hi Jacky,

We have documentation for hiding the Command Column button in specific records. Command buttons enable CRUD operations in Grid records. For certain records, these operations can be restricted by hiding the command buttons. This can be achieved by using the RowDataBound event in the DataGrid component.

 

Documentation:https://blazor.syncfusion.com/documentation/datagrid/how-to/hide-command-column-based-on-record-detail

If a requirement is not met, we need more clarity on your exact need — whether you want to disable the GridCommandColumn in the backend of the data grid during RowDataBound, or if you need to disable a specific record using the GridCommandColumn.
 So kindly get back to us with more details about your requirement.

 

 

Regards,
Guhanathan R



JA Jacky April 5, 2025 01:43 AM UTC

Hi  Guhanathan ,


Thanks for the help, that's what I needed.

Regards!

Jacky



GR Guhanathan Ramanathan Syncfusion Team April 7, 2025 06:11 AM UTC

Hi,

Thank you for the update.

We are glad to hear that you have resolved your query using our solution.
 If you require any further assistance, please feel free to reach out to us. We will be happy to help.




Loader.
Up arrow icon