Skip to main content

Timeline for Filtering values for GridViewItems

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Oct 8, 2014 at 21:49 history edited Jamal CC BY-SA 3.0
deleted 144 characters in body
S Oct 15, 2012 at 13:45 history suggested JorisG CC BY-SA 3.0
Further Moved .ToList() after discussion with original answer author
Oct 15, 2012 at 7:19 review Suggested edits
S Oct 15, 2012 at 13:45
Oct 15, 2012 at 7:18 comment added JorisG Of course you're right, Filter(StockRooms).ToList() in the first method is probably the only one required. I looked over that. I would keep it on before the assignment to the datasource, the give it a fixed number of instances, because every time it queries the collection, it will have to re-evaluate all the applied filters.
Oct 12, 2012 at 19:29 comment added dreza @JorisG Just wondering on the edits. Why would you ToList() the object going into the method and then ToList() it again on the way out? Would it not be best to only do it once at whichever stage you choose and potentially work with IEnumerable all the way though until the end?
S Oct 12, 2012 at 15:09 history suggested JorisG CC BY-SA 3.0
repost: improved answer in compilability and performance, after discussion with reviewer at http://meta.codereview.stackexchange.com/questions/617/when-to-post-new-answer-suggested-edit-rejected
Oct 12, 2012 at 14:18 review Suggested edits
S Oct 12, 2012 at 15:09
Oct 12, 2012 at 12:30 review Suggested edits
Oct 12, 2012 at 13:04
Oct 6, 2012 at 21:36 history edited dreza CC BY-SA 3.0
Updated code
Oct 6, 2012 at 21:02 history edited dreza CC BY-SA 3.0
removed code as was wrong
Oct 6, 2012 at 19:20 history answered dreza CC BY-SA 3.0