I am assigning an UltraCheckEditor to a cell in a WinGrid (via Build_InitializeRow event). The problem is that regardless of how I set the Checked value it displays as a filled in square.
i.e
What am I missing? It works fine when I dynamically create the UltraCheckEditor and add it to a different form, just something about the WinGrid I am assuming.
If you're setting an UltraCheckEditor as the EditorControl of a particular column, the Checked property on the control isn't honored because each cell needs to display the underlying value, which in the posted example looks to be null, so an indeterminate checkbox is used. You might find it much easier to set the Style on the column to ColumnStyle.CheckBox or ColumnStyle.TriStateCheckBox.
-Matt
Is there a way to do this based on row and not column? I am actually setting the editor type for each row (cell by cell).
Doing it by row is fine, you just won't be able to use the ColumnStyle. All that the ColumnStyle really does is create an editor for any cells in that column and uses that same editor when any cell in the column goes into edit mode. As long as you are reusing the same editor for each cell, you should be ok; creating multiple identical editors is inefficient since only once cell can be in edit mode at a time anyway.