I have a column which is bound to a System.Boolean object, and which appears as a checkbox. I'd like to make it a tri-state checkbox; what do I need to set its type to, and how do I configure it?
Thanks, Aaron
Hello , You can try to use the Style property of the column set to TriStateCheckBoxe.Layout.Bands[0].Columns["Selected"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.TriStateCheckBox;You can find more details here:http://help.infragistics.com/NetAdvantage/WinForms/2010.1/CLR2.0/?page=Infragistics2.Win.UltraWinGrid.v10.1~Infragistics.Win.UltraWinGrid.ColumnStyle.html
I hope this helps.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
This is an UltraTree, not a grid (thus the post in the WinTree forum), and UltraTreeColumns don't appear to have a Style property. Any other ideas?
Hello , I forgot to clarify that in order to convert directly the values to Boolean of the checkbox state enumeration you should use DataFilter since the check editor use different values then the Boolean.http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=5014I am attaching working sample for your reference.I hope this helps.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Hello Aaron, I am sorry, somehow I discard the area and I have mislead.You can use UltraTreeColumnSetand set the type of the data. Something like that:UltraTreeColumnSet commonColumnSet = new UltraTreeColumnSet();commonColumnSet.Columns.Add("MyBoolColumn");commonColumnSet.Columns["MyBoolColumn"].DataType = typeof(CheckState);I hope this helps.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.