JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › Grid cell highlighting › Reply To: Grid cell highlighting
October 23, 2023 at 7:57 pm
#109052
admin
Keymaster
Hi Ferris,
As mentioned in the article, you can apply styles dynamically, too by using a callback function cellsClassName
cellsClassName: (index, dataField, value, rowData, row) => {
if (value < 3) {
return 'cell-class-2';
}
if (index < 5) {
return 'cell-class-1';
}
if (index >= 5) {
return 'cell-class-3';
}
}
},
The custom CSS class may or may not include borders. However, this would not remove the Grid’s default cell borders, they will be inside the cell.
Regards,
Markov
Smart UI
https://www.htmlelements.com/