Last post Aug 24, 2015 02:57 AM by Candice Zhou
Aug 21, 2015 02:12 AM|Yeoman|LINK
I have an ObjectDataSource that fills a ListView. When the user changes some filter criteria, I used to change the its FilterExpression accordingly, and the ListView immediately changed its content.
Now I need a filter condition with a function, and I noticed that the FilterExpression must not contain function calls. It even cannot have an EXISTS call.
What else can I do?
Aug 24, 2015 02:57 AM|Candice Zhou|LINK
As we all know, the ObjectDataSource control supports filtering data only when the Select method returns a DataSet or DataTable object. So, you should check out your object type.
For more information, please refer to the document about
ObjectDataSource.FilterExpression Property, the document explains the usage and gives the example.
I hope this will help you.