FilterExpression on CSLADataSource ?

FilterExpression on CSLADataSource ?

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


tcrabb posted on Wednesday, October 25, 2006

Hey,

Is there a way to Filter data that is returned from a CSLADataSource, as you would set the FilterExpression on an ObjectDataSource?

Thanks,

Toni

david.wendelken replied on Wednesday, October 25, 2006

You write the code the select method the csla data source uses, so filter it there... :)

Brian Criswell replied on Thursday, October 26, 2006

It looks like ObjectDataSource is doing something specific to that class.  It looks like your best bet is to either not retrieve as much information from your data source, or if you want to fetch the data only once, put the resulting list into a FilteredBindingList or ObjectListView and attach the filter object to your ObjectDataSource.

Copyright (c) Marimer LLC