How can I control the appearance of the displayed grid where cells have their Hidden property set to true? I've tried setting the Appearance property of the hidden cells to a new Appearance object but that had no effect. I assume that is because the cell is hidden. Also, changing the background of the grid had no effect so I assume the cell is being painted. What is left to change?
When you hide the cell, my guess is that what you see in that empty space it the row. Try setting the row.Appearance.BackColor.
Thanks for the reply Mike. I tried setting row.Appearance.BackColor but this changed the background color for all the cells in the row (hidden or not).
I found that setting the row appearance at the band level to be my hidden cell appearance and then setting the CellAppearance for each column in the band back to the "normal" appearance worked fairly well. However, when my row appearance used a BackHatchStyle the hatching was visible in the border around the "normal" cells. Setting the column's CellAppearance BackHatchStyle, BorderColor, and BorderColor2 properties didn't remove the hatching visible in the cell's border.
KJSitton said:I found that setting the row appearance at the band level to be my hidden cell appearance and then setting the CellAppearance for each column in the band back to the "normal" appearance worked fairly well.
Isn't there a CellAppearance on the Override as well as a RowAppearance? So you could just set the CellAppearance once rather than for each column, I think. In fact, I think there may even be a RowCellAppearance which would be better than CellAppearance.
KJSitton said:However, when my row appearance used a BackHatchStyle the hatching was visible in the border around the "normal" cells.
Hm. I would think the cell borders would cover the space in between cells. Unless you are using CellPadding to provide some extra spacing in between the cells.
That might be a bug. You should probably Submit an incident to Infragistics Developer Support so they can check it out.
The only alternative I can think of would be to use a DrawFilter to fill in the blank cells with a color of your choice.