Hello,
I have a group of columns, let's say:
2012
______________
Jan | Feb | March |
I want to hide Feb, or march by binding it to my ViewModel Visibility property. I have noticed that when loading the grid if it is collapsed y doesn't show anything and if it is Visible it shows the column.
When I try to bind Visibility to my ViewModel, even if it changes my grid does not perform the action of collapsing or showing the column. Is any good practice for this?
Visibility="{Binding EmissionsVisibility,Mode=TwoWay}"
Thank you for your post. I have been looking into it and I suggest you see this blog:
http://blogs.infragistics.com/blogs/devin_rader/archive/2011/04/29/binding-to-properties-of-non-frameworkelements.aspx
where it is explained how to bind to nonframeworkelements.
Hope this helps you.