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
384
UltraCheckEditor in WinGrid - incorrect display
posted

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 Filled in CheckboxCheckbox

 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.

Parents
No Data
Reply
  • 37774
    posted

    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 

Children