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
605
Hierarchical XamGrid: Show or hide columns by parent property
posted

Hello

I am using a XamGrid with many rowlevels.
I defined columnLayouts for each sublevel.
My Issue is to be able to show (or not) one of the column of the sublevel depending on a property of my current item or the parent viewmodel.
Is there any way to realize this?


Thanks in advance

Parents
No Data
Reply
  • 17475
    Offline posted

    Hello Kasar, 

    You can bind the Visibility property of a column using a static resource since the column does not derive from FrameworkElement and could not be bound to the DataContext. Here is a forum thread where Stefan has provided a sample on the same: http://ko.infragistics.com/community/forums/t/76299.aspx.

    Please do not hesitate to let me know if you need further assistance on the same.

Children