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
470
Raise PropertyChanged when IsGroupBy changes
posted

Is there a way to raise PropertyChanged when IsGroupBy changes on a FieldLayout? I have some labels whose Visibilities I want to bind to IsGroupBy using a DataTrigger. The initial rendering works fine, however, when the user groups/degroups on the XamDataGrid, the DataTrigger is not reevaluated because no PropertyChanged was raised.

Definition of DataTrigger mentioned:

<DataTrigger Binding="{Binding IsGroupBy, ElementName=itemType, Mode=TwoWay}" Value="True">

   <Setter Property="Label.Visibility" Value="Collapsed" />

</DataTrigger>

Definition of "itemType":

<igDP:FieldSortDescription x:Name="itemType" IsGroupBy="True" Direction="Ascending" FieldName="Item_Type"/>

Thanks!

Parents
  • 138253
    Verified Answer
    Offline posted

    Hello Daniel,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I created Style for the LabelPresenter and bound its Visibility to the IsGroupByProeprty and using converter I set this Property.  Please let me know if his helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    XamDataGridGroupByLabels.zip
Reply Children