This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, Am I right in thinking that the current implementation of EntityCollection<> does not override the SupportsSorting property of the BindingList base class, and therefore does not support OOTB sorting of the collection items? The scenario is I'm wanting to set the DataSource property of a datagrid to an EntityCollection<> and I want the DataGrid columns to be sortable. Any suggestions or is this something that could be looked at in a future build? Greg |
|
|
Hi Greg, I'll have a look at implementing this in EntityCollection. For now you should just be able to subclass EntityCollection and override the sort methods yourself. Cheers, Andrew. |
|
|
Hi Andrew, Yeah I looked at subclassing EntityCollection<> but was foiled because it's sealed... Cheers, Greg |
|
|
Hi Greg, EntityCollection isn't currently sealed but subclasses aren't currently recognized as associations. This will be fixed in tonights build. http://www.mindscape.co.nz/products/LightSpeed/NightlyBuilds.aspx Cheers, Andrew. |
|
|
Hi Greg, My bad. The class was getting sealed by our assembly post processor. It now isn't. Cheers, Andrew. |
|
|
I was starting to think I'd imagined it. Sweet - thanks. Greg. |
|