I have a Silverlight RadGridView that represents six months of the year. Each row of data in the grid is stored as a record in an SQL table.
I want to allow users to attach a Note to a cell in the grid by right-clicking a cell and using a context menu to New | Edit | Delete a Note. Each cell in the grid could have a Note associated with it…but most likely only a few Notes will get attached to the grid.
I need to be able to visually identify cells that have a Note associated with them. I was thinking of applying a background to cells that have notes (similar to Microsoft Excel’s use of a red tag in the upper right corner of the cell). The Notes are stored in a separate SQL table and are tagged with the date that corresponds to the cell.
I have been able to set the background for specific columns:
//Sets the whole column
participantExerciseDetailsRadGridView.Columns[col].Background = new SolidColorBrush(Colors.Orange);
How do I go about setting the background color of specific cells (programmatically)? I am already using a Conditional Style Selector to identify cells in Columns 29, 30, & 31 that are not valid dates and setting the ‘IsEnabled’ property to true | false. I thought about creating another conditional style selector, but it appears that I cannot have multiple conditional style selectors on the same column.