I am using the Office 2007 Silver style sheet. I tried makign the "Active" row color transparent but it just seems to take another color. The problem is when users are using extended copy past, the row color interfers with what is selected. Is there a way I can make this transparent or turn it off?
This is where I was in the stylesheet...
GridRow -> Common States -> Active.
peryan77 said:In either case, I do not want any row colors. . Essentially I need to emulate excel, so only the cells you click (simple or extended) are highlighted. I cannot have the row color interfere at all. I need the row selectors so users can delete a row
What I would do, then is turn off the Active colors by removing any settings from the Active state of the Row UIRole.You will also need to reset the ActiveRowAppearance in the grid, if it is set.
That takes care of the ActiveRow. You can't remove the colors from the selected row, but you can turn off row selection by setting SelectTypeRow (on the grid's Override object) to None.
peryan77 said:However, can you tell me which settings I need to change to use a different color other then the default dark blue for cell selections?
In code, you would use the SelectedRowAppearance property. In the Application Style, you would use the Selected state on the Row UIRole. Note that this will work if you want change the color. But you cannot turn off the selection BackColor without also turning off selection.
peryan77 said:I presume active cell is one of them? But there must be more?
No, ActiveCell has nothing to do with selected row.
peryan77 said:FYI, it would be nice if there was an "excel mode" for the grid which emulates excel (i.e. when you hit enter in moves to the next row) Yeah I could add this event, but I have spent many hours making this into excel because users are transitioning from an excel platform to windows forms, and they are used to excel and want it. So all the copy paste functionality, in cell comments etc. had to be custom developed. Well, I guess that keeps me employed :)
I encourage you to Submit a feature request to Infragistics
In either case, I do not want any row colors. . Essentially I need to emulate excel, so only the cells you click (simple or extended) are highlighted. I cannot have the row color interfere at all. I need the row selectors so users can delete a row
The steps I took thus far is to make the grid styles override the stylesheet, did this in resolution setting.
Then I reset the activerow, etc.. settings.
Made cell/row selected to extended.
I got the results I want now. However, can you tell me which settings I need to change to use a different color other then the default dark blue for cell selections?
I presume active cell is one of them? But there must be more?
FYI, it would be nice if there was an "excel mode" for the grid which emulates excel (i.e. when you hit enter in moves to the next row) Yeah I could add this event, but I have spent many hours making this into excel because users are transitioning from an excel platform to windows forms, and they are used to excel and want it. So all the copy paste functionality, in cell comments etc. had to be custom developed. Well, I guess that keeps me employed :)
If it is really the ActiveRow color you want to remove, then the best thing to do would be to reset the entire state. Or set the BackColor to Default.
Setting it to transparent is not the same as turning the color off - you are actually make the row transparent.
It's also important the understand that active and selected are two different things. So you may be having an issue with the selected color, rather than the active state.