I have a gridview with ItemsSource set to a DataTable ... I want to get the results of filtering without actually doing the filtering ... Something like:
IENumberable<DataRow> list = from rows in Grid.ItemsSource select rows;
var newList = rows.Where(Grid.FilterDescriptors);
foreach (DataRow dr in newList)
// Do Something
In this post: http://www.telerik.com/community/forums/aspnet-mvc/grid/grid-and-nhibernate-linq.aspx the reply from Atanas leads me to believe its easy to do ? "You can check the implementation of the Where extension method. There is some code which builds a LambdaExpression from the filter descriptors:"
Thank you -
Scott
IENumberable<DataRow> list = from rows in Grid.ItemsSource select rows;
var newList = rows.Where(Grid.FilterDescriptors);
foreach (DataRow dr in newList)
// Do Something
In this post: http://www.telerik.com/community/forums/aspnet-mvc/grid/grid-and-nhibernate-linq.aspx the reply from Atanas leads me to believe its easy to do ? "You can check the implementation of the Where extension method. There is some code which builds a LambdaExpression from the filter descriptors:"
Thank you -
Scott