Try our conversational search powered by Generative AI!

Applying multiple filters to a datasource


Hello there,

I am trying to sort a PageList by more than one filed (Start and End Date of an event).

I tried the following but it only applies the last filter of End date.

ucEventUXII.DataSource = pdcEvents();
FilterPropertySort StartDateFilter = new FilterPropertySort("EventStartDate", FilterSortDirection.Ascending);
ucEventUXII.Filter += new FilterEventHandler(StartDateFilter.Filter);
FilterPropertySort StopDateFilter = new FilterPropertySort("EventStopDate", FilterSortDirection.Ascending);
ucEventUXII.Filter += new FilterEventHandler(StopDateFilter.Filter);

 Any ideas?



Apr 16, 2008 11:17
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.