Is there a reason we can't have a StyleSetName for rows and/or cells?
Hi Mike,
StyleSetName only applies to a Control. I'm not sure if there is any technical limitation that would prevent us from adding it to a individual objects, but it would be a pretty massive project to add StyleSetName to every sub-object.
Something similar already exists, though. Did you know that there is a StyleSetResourceName property on the Appearance object? This lets you specify the name of the Resource in the isl file to apply to the appearances, just as though you set the properties of that appearance.
This works great, thank you. The only small issue I have now that the color does not stay when I am editing a cell. is there anyway to do that?
Hi,
It's hard to say without knowing why the color is changing. The Appearance on the cell applies both in and out of edit mode. So something in your isl or your app must be applying a different appearance to the cell when it is in edit mode, or maybe it's the ActiveCell.
Does the same color show up if you don't load the isl file? If not, then you would need to modify the isl. You could try setting the EditAppearance on the cell to the same resource, but I'm not sure if that will override the isl file or not.
The color that is shown is from the EditMode state. However, I can only set the StyleResourceName for Appearance, ActiveAppearance and SelectedApperance for th e cell.
Ok, thanks for checking into it.
There's no edit appearance on the individual cell, but there's an EditCellAppearance property on the Override which applies to the entire grid or a band.