I have a background that is spanning all of the cells. The original highlight is blue as well as semi transparent. This way it seems to override the whole background so you can't see the original background. Is there a way to change the color but also see the background image? Here is how I set the background image:grid.Model.Options.DrawSelectionOptions = GridDrawSelectionOptions.ReplaceBackground;grid.Model.Options.HighlightSelectionBackground = Brushes.DarkSlateGray;
I was also wondering how to change the border of the highlight selection. Basically what I want is to have the border of the selection become thicker so it looks like the selection is framed. Sort of like how it originally styles a single cell to have thicker borders. Here is what I tried and it didn't work:backgroundImage = new CellSpanBackgroundInfo(1, 1, numRows, numColumns);backgroundImage.Background = new ImageBrush(CreateBitMapImage(imageSource));grid.Model.CellSpanBackgrounds.Add(backgroundImage);
grid.Model.Options.HighlightSelectionBorder = Brushes.DarkOrange;grid.Model.Options.HighlightSelectionBorderWidth = 4.0;
var brush = new SolidColorBrush(Colors.DarkSlateGray) {Opacity = 0.5};
grid.Model.Options.HighlightSelectionAlphaBlend = brush; |
grid.Model.Options.ExcelLikeSelectionFrame = true;
grid.Model.Options.HighlightSelectionBorder = Brushes.DarkOrange;
grid.Model.Options.HighlightSelectionBorderWidth = 4.0; |
grid.Model.Options.ShowCurrentCell = false; |