How to add filter, sorting to dynamic data in grid
I have 2 elements in xml doc and I am displaying them in a grid. I am adding these 2 elements and displaying 3rd column in grid. eg. column "base price" + column "expense" = column "total" . The values for base price and expense are coming from xml. I am using renderer to add 2 columns and to display "total" column. Filter and sort is working fine for first 2 columns and I want to add filter and sort to 3rd column which is "total" column. Please help how can I do that.