AddNew on a bound LinqBindingList resulting from a sort query

AddNew on a bound LinqBindingList resulting from a sort query

Old forum URL: forums.lhotka.net/forums/t/7283.aspx


OlgaLu posted on Wednesday, July 15, 2009

I have a datagrid bound to a LinqBindingList resulting from a query on a BLB:

from point in Points

orderby point.SequenceNumber

select point

When a try to add a new point to the grid AddNewCore() method of the original the BLB is called and the new point is created with a sequence number that would place it at the end of the sorted list. However the LBL filters it out. Is there anything I need to do so that the new item gets included in the correct order in the LBL?

 

Thanks!

 

 

Copyright (c) Marimer LLC