DateDiff in RowFilter
I have a datagrid which has a column showing a date value "D1". I want to use the RowFilter to the dataview so that it will filter out records which have D1 older than a given number of days. The following is my RowFilter coding:
dv.RowFilter = "DateDiff(d, D1, DateTime.Today) <= 7"
However, when I execute it, .NET returns me an error: "The expression contains undefined function call DateDiff()". What's wrong??

