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
1015
Tri State Editor
posted

Hello!
How can I have an editor that allows tri state edit? (true, false, null)
I have an Ultragrid bound to an object with a nullable Boolean property. So fare no problem the values are displayed correct with a checkbox (checked, unchecked, intermediate). The problem is that the user has no possibility to set the value back to intermediate once checked or unchecked is selected.
What I have tried/checked so far:
* The datatype of the column is recognized by the grid (nullable Boolean) and I can’t change it since it is bound.
* I can’t set an Editor for that column since the list of editors is empty.
What am I doing wrong? Is this a bug? Can anybody help?
Uli

 

Parents
  • 48586
    posted

    Hello,

    One possible way to achieve your goal is to set UltraCheckEditor for EditorComponet property of the column, which will display three-state. Also you should set ThreeState of the UltraChechEditor to true. Please see attached sample.

    Please let me know if you have any further questions.

    WinGridTreeStateBoolColumn.zip
Reply Children