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
475
Force a CheckEditor inside an UltraGrid cell to be checked without changing the value to True
posted

I have a checkbox in an UltraGrid cell.  It works fine and changes the value for the row object.  However, I need to be able to display the checkbox as checked, without actually changing the underlying value of the row object.  I have tried the following with no success.

This does not work and the checkbox remains unchecked.

((CheckEditor)e.Cell.EditorResolved).CheckState = CheckState.Checked;

This throws an error (Internal error: owner arg should never be null)

((CheckEditor)e.Cell.EditorResolved).Value = true;

The only thing that works changes the underlying value to True which I'm trying to avoid.

e.Cell.Value == true

Parents Reply Children
No Data