Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
Grid and filters
posted

Hi,

I am using filters and they work great when I have one condition per record filter.

I have a need to do something like this: Only show records whose StopDate is either greaterthan today's date or is null.

So I added 2 conditions... It is almost clear that it doesn't work. Is there a way this can be done??

Thanks

 

 

RecordFilter

 

 

dateFilter = new RecordFilter(e.FieldLayout.Fields["StopDate"

]);

dateFilter.Conditions.Add(

 

new Infragistics.Windows.Controls.ComparisonCondition(Infragistics.Windows.Controls.ComparisonOperator.GreaterThan, DateTime

.Now));

dateFilter.Conditions.Add(

 

new Infragistics.Windows.Controls.ComparisonCondition(Infragistics.Windows.Controls.ComparisonOperator.Equals, null

));

e.FieldLayout.RecordFilters.Add(dateFilter);