I'm trying to find the cleanest format in which I can get the current filters entered on a postback. The only place I'm able to find it is in the MasterTableView.FilterExpression string. An example of how that looks is:
(it["Continent"].ToString().Contains("Af")) AND (it["Country"].ToString().Contains("So"))
I'm just wondering if there's a way to get this information in a nicer format.
Eventually I need to turn this information into sql, and I'll need to create a helper method to make that translation (unless someone knows of one that already exists).
Thanks,
Alex
Edit: to further complicate matters it appears that sometimes the filter expression can be in a different format, for example:
(Convert.ToString(it[\"CategoryName\"]) >= \"Bev\")
(it["Continent"].ToString().Contains("Af")) AND (it["Country"].ToString().Contains("So"))
I'm just wondering if there's a way to get this information in a nicer format.
Eventually I need to turn this information into sql, and I'll need to create a helper method to make that translation (unless someone knows of one that already exists).
Thanks,
Alex
Edit: to further complicate matters it appears that sometimes the filter expression can be in a different format, for example:
(Convert.ToString(it[\"CategoryName\"]) >= \"Bev\")