I need to select the cells in the grid only, and I have been thwarted at every turn. Each row of my grid has different cells which are disabled with a back color of LightGray. When I select a cell in the grid, the entire row is being highlighted and I can't see which cells are enabled and which are disabled.
I have tried every combination of RowActivation, CellActivation that is possible. Does not work.
I have tried setting BackColorAlpha to Transparent for both the ActiveRowAppearance and SelectedRowAppearance. This does not work. The highlighted row renders white. White <> transparent. I can't see my grayed out cells on the row that is selected.
I have tried setting BackColor = Transparent, BackColorAlpha = UseAlphaLevel, AlphaLevel = 1. This throws an exception inside of Paint.
Is is that unusual for someone to want to select one cell in a grid? How can I accomplish this?
I don't understand your question. You described the behavior that you are getting, but you did not say what's wrong with it. What exactly is the behavior you want?
If you want to select cells and not rows, then you should set SelectTypeRow to None and SelectTypeCell to whatever setting is most appropriate for your needs.
You might also want to look at the CellClickAction property.
All of these properties are on the Override.
What is wrong with the behavior is that when the grid highlights my active row, I cannot see the different colored cells on that row. I have tried all of the overrides you just mentioned, but it does not change the fact that the grid wants to highlight the row, and thus obscure all the background colors of the cells.
To see this behavior, make every other cell some row have a background color of LightGray. Then select that row. You will not be able to see which cells are LightGray and which ones are not.
Okay, so the issue is that the Selected appearance of the is overriding some other appearance that you are applying to the cells. That makes sense. This same issue is dicussed in this thread:
http://forums.infragistics.com/forums/p/992/12103.aspx#12103
Good deal! Thanks Mike.