Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
625
How to make a read-only cell without having it's color/appearance change?
posted

I'm using the cell's.Activation to make it 'ActivateOnly'.  But this changes the backcolor.

 

How can I make a cell readonly and have it keep it's original color?  I've tried to manually set the cell's appearance after changing the activation and it doesn't seem to work.

  • 69832
    Verified Answer
    Offline posted

    Assuming that the BackColor property is set on the ActiveCellAppearance, that color is applied to the background when the cell is activated, and in fact takes precedence over the UltraGridCell.Appearance. If CellClickAction is set to EditCell, the cell can go into edit mode when it is activated, in which case that appearance is also applied to the edit portion. If this is the case, you can use the EditCellAppearance to override the ActiveCellAppearance when the cell is in edit mode.