How can I, in effect, set the back color for the selected rows to transparent? Setting it via pGrid.SelectionBackColor = Color.Transparent does not work as expected. The text values become hidden when rows are selected. I also don’t want to set the SelectionMode to None – I want to keep the selection functionality. Any suggestions?
Imported from legacy forums. Posted by csperler (had 2854 views)
Unfortunately, it’s created several new problems. Basically, I’m getting unexpected color changes. Essentially, my goal was to set up the grid such that only selected cells are colored differently, not selected rows. So, for example, in a [3×3] grid, if I click on the middle cell, only that cell’s back color changes, as opposed to the entire row’s. If I then control-click the upper middle cell, then only that cell and the middle cell are colored, versus the top two rows. Is there a known/documented way of accomplishing this?
Imported from legacy forums. Posted by csperler (had 342 views)
The Xceed.Grid.GridControl is a row-based grid control. You can set individual cell properties, but the selection is row-based. Luckily, the grid control is also very extensible. If you want to make the selection of the grid cell-based, you can extend the grid. The documentation has some topics on extending Xceed.Grid-classes, and there might also be some examples that do this.
Imported from legacy forums. Posted by Tommy (had 4016 views)