Two grids - Filter on Grid 1 - Show inverted results on Grid 2

2 posts, 0 answers
  1. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 08 Mar 2014 Link to this post


    I have two grids.

    Grid 1 - User filters out records that are not required.

    Grid 2 - I would like to show the records that have been filtered out of Grid 1

    Please can you tell me the best way to acheive this?

    Kind Regards

  2. Alexander Popov
    Alexander Popov avatar
    1444 posts

    Posted 11 Mar 2014 Link to this post

    Hello David,

    This could be achieved by subscribing to the change event of the first Grid's DataSource. Once the event is triggered you can check the first Grid filter and manually build another filter with the opposite criteria, then apply it to the the second Grid using the dataSource.filter method. 

    Alexander Popov

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

Back to Top