This is a migrated thread and some comments may be shown as answers.

want to filter second grid by first grid filtering options

0 Answers 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sameer
Top achievements
Rank 1
sameer asked on 26 Jul 2011, 06:10 AM
HI,
I want to filter second grid by first grid(rgrdcontrireport) filtering options.
I have two grids ,when i filter first grid   with that filtering option i want to filter second grid also
suppose in first grid i have batchid,userid,familyid. and i filtered first grid by batchid>12,
now this filtering i want to apply to second grid(rgrdexport)
how can i do this?
i am working on this code to get value of filtering but it is not applying to second grid(rgrdexport)
first grid (rgrdcontrireport)
second grid (rgrdexport)

  rgrdexport.AllowFilteringByColumn = true;
        GridColumn batchidexport = rgrdexport.MasterTableView.GetColumnSafe("BatchId");
        GridColumn batchid = rgrdcontrireport.MasterTableView.GetColumnSafe("BatchId");
        batchidexport.CurrentFilterFunction = batchid.CurrentFilterFunction;
        batchidexport.CurrentFilterValue = batchid.CurrentFilterValue;
       // rgrdexport.Rebind();
        expression = "BatchId " + batchid.CurrentFilterFunction + " " + batchid.CurrentFilterValue;
        rgrdexport.MasterTableView.FilterExpression = rgrdcontrireport.MasterTableView.GetColumnSafe("BatchId").EvaluateFilterExpression();

thanks ,
sameer

No answers yet. Maybe you can help?

Tags
Grid
Asked by
sameer
Top achievements
Rank 1
Share this question
or