skolanti
asked on
ASP.Net GridView
hello,
I have an iqueryable<objectextended> collection which is passed to a gridview.
I want to update the properties of objectextended before passing it onto the gridview.
I tried to convert IQueryable to List and update the items in the list and convert the list back to IQueryable, but it doe not work.
Thank You.
I have an iqueryable<objectextended>
I want to update the properties of objectextended before passing it onto the gridview.
I tried to convert IQueryable to List and update the items in the list and convert the list back to IQueryable, but it doe not work.
Thank You.
Try to create a deep copy of the collection. That is, iterate through the items and create a new list and new items within the list. You can do this with a code loop or you can use Linq to project a new list of items using .Select().
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.