Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Grouping on one grid adds groups to all grids

Sort Posts: Previous Next
  •  05-08-2008, 5:26 AM Post no. 12070

    Grouping on one grid adds groups to all grids

    In one of my Xceed datagrids, when I group by a column, all Xceed datagrids that are bound to that collection show the grouping. Is there a way to avoid this? I have like 3 tables (on different Pages) bound to the same collection, but showing slightly different fields.


    I am binding the datagrid on window_load, directly binding to the collection:

        xdg.DataContext = myFilteredMiniFutureCollection;

     

    Thanks for your great grid, it's been a godsend!


  •  05-08-2008, 8:42 AM Post no. 12076 in reply to 12070

    Re: Grouping on one grid adds groups to all grids

    If you are binding the grids directly to the data source, then this is quite normal behavior. What I suggest you do is bind each grid to separate DataGridCollectionViews, which are in turn bound to the same data source. For example:

    DataGridCollectionView view1 = new DataGridCollectionView( myFilteredMiniFutureCollection );
    DataGridCollectionView view21 = new DataGridCollectionView( myFilteredMiniFutureCollection );

    dataGridControl1.ItemsSource = view1
    dataGridControl2.ItemsSource = view2;


    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
  •  05-08-2008, 11:12 AM Post no. 12091 in reply to 12076

    Re: Grouping on one grid adds groups to all grids

    Thanks!
     

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.