JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › is there a way to add a class to a cell? › Reply To: is there a way to add a class to a cell?
October 12, 2023 at 4:39 pm
#108965
Participant
Hi edward,
You can use column -> cellsClassName. You can set this to a function, which is called for each cell. For example:
cellsClassName: (index, dataField, value, rowData, row) => { if (index === 0) { return ‘cell-class-1’ }
Best Regards,
Ivan Peevski
Smart UI Team
https://www.htmlelements.com/