I am display different values in a grid. Now as the user can change values over an input-dialog, I’d like to highlight the changes in the grid. How do I access a specific cell in grid to change the color of this cell?
The Grid component has a feature to generate CSS class names for the cells. Its usage depends on if you are a frontend or Java developer.
If you are using the client-side web component, you use this feature by implementing the cellClassNameGenerator function, which takes the column and row data as parameters, and returns the class names to be applied based on them. After the conditions change, you can update the class names by calling the generateCellClassNames function. See the demo at https://vaadin.com/components/vaadin-grid/html-examples/grid-styling-demos.