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
135
XAMGrid Child Row Selection on Group Row Selection
posted

Hello Team,

I am using XAMDatagrid in WPF. I have used "GroupByPresenter" style to group the records with Checkbox in group row. I am selecting child group records on clicking of checkbox in Header row. 

Now I have two issues. 

1) I have two level grouping - so want check checkbox of second level group when first level(Main Parent) level group checkbox is checked.

2) When user clicks anywhere in area of group row selection of child rows is removed.

I have attached video to give u better understanding of my problem.

It would be great help if u can provide me a solution.

Thanks & Regards,

Vikram U

 

Parents
No Data
Reply
  • 135
    posted

    I have attache my code in zip file.

    Basically second issue is that, 

    Suppose I have Hierarchy like below

    Parent1 - Group Row

     SubParent1  - Group Row

     Child1.1 - Normal Data row

     Child1.2  - Normal Data row 

    Parent2 - Group Row

     SubParent2  - Group Row

     Child2.1 - Normal Data row

     Child2.2  - Normal Data row

    Now If I click On Parent1 checkbox it selects all the child rows under that parent means Child1.1 and Child1.2

    Now If I click anywhere in group area or somewhere else in XAm grid it removes the selected rows (Child1.1, Child 1.2)

    I haven't tried your code will do and let u know the result.

    Thanks,

    Vikram

    CopyForward.xaml.zip
Children