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
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