I have a ColumnSet with a column whose data type is set to System.Boolean, and whose key is set to an object property of type Boolean. No matter what the value of this property, the initial state of the column is indeterminate. When I modify the value of the checkbox, my property's set method is not called, which makes me think that it's not actually bound.
Am I missing some step in the binding? I can bind other columns with no trouble.
Thanks, Aaron
Hi Aaron,
How did the ColumnSet get created? Did you allow the tree to auto-generate it? Or did you create it yourself?
If it was AutoGenerated, then it's extremely unlikely that it's somehow not bound.
If you created it yourself, then my guess is that the column name isn't matching the name of the field in the data source.
I created it myself, and I've verified that the column name matches. The column type is System.Boolean, and the type of the property is also Boolean.
Is there some way to verify whether or not the column is bound?
Ah, I see. That would certainly do it.
Just to clarify, I'm pretty sure that this has nothing to do with the tree. It's probably the DotNet BindingManager the filters out non-browsable properties.
Solved it - I had [Browsable(false)] on the property to prevent it from showing up in a different control. This apparently hides it from the tree as well. Who knew?