WPF UXGridViewExpander Column with Row Details

2 replies. Last post: October 7, 2014 8:34 AM by Hans Kristian
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

I am creating a MMVM WPF Application where I display data called Session in a UXGridView.  I have Subsession I display in Row Details and I show the Row Details when a UXGridViewExpander Column is pressed.  I want to hide the UXExpander Button if there are no SubSessions for the given session.  I have created a work around by customizing the CellTemplate of the UXGridViewExpander column.  

<Intersoft:UXGridViewExpanderColumn CellTemplate="{StaticResource ExpanderTemplate}"/>

        <DataTemplate x:Key="ExpanderTemplate">

            <Intersoft:UXGridViewExpanderButton Visibility="{Binding Path=SubSessions.Count, Converter={StaticResource visibilityConverter}}"/>

        </DataTemplate>

And a Converter to convert the number of subsessions into the appropriate Visibility.  The expander button is hidden when the number of Subsession is 0.  My issue is that when you press the visible expander buttons an error that the OwningGrid is not set for the Expander button.  I am unable to bind the Owning Grid property to the Expander Button because it is not a dependency property.  I have also tried setting the Name of my UXGridView and set that as the owning grid as a static resource, but I still get the same error.  How can I set the OwningGrid property on a UXGridViewExpanderColumn Cell Template?  


All times are GMT -5. The time now is 4:59 PM.
Previous Next