When I hide a cell (i.e. e.Row.Cells[""].Hidden = true) there is a empty space for the hidden cell in the grid. What is this empty space? I want to be able to change the color of the space where the cell is hidden.
Thanks
The empty space is the absence of a CellUIElement. Since cells appear in the foreground with respect to the row area, you can change the color of this area by using the BackColor property of the RowAppearance:
UltraGrid.DisplayLayout.Override.CellAppearance.BackColor = Color.White;UltraGrid.DisplayLayout.Override.RowAppearance.BackColor = Color.Red;
Note that the reason you have to also set the background color of the CellAppearance is that cells inherit their appearance from rows unless the cell's appearance is explicitly set.
An alternative approach would be to set the Style of the cell to Image (instead of setting the Hidden property to true). This would prevent the cell from being editable or showing any text, and the cell's value presumably cannot be converted into an image, so nothing will display. So it's similar to hiding the cell, but the cell will still have a UIElement so the cell's Appearance will still work.