FilterBar problem with DateTime Column

Hi,
I have a problem when I apply a filter on a DateTime Column. The exception is "Cn not Perform '=' operation on System.DateTime and System.String".

Thanks for your haelp.
Simon

3 Replies

AD Administrator Syncfusion Team November 29, 2006 11:46 AM UTC

Hi Simon,

The GridDataBoundGrid uses a DataView.RowFilter property to handling the filtering that requires #''s around dates.

Here is a forum thread that discusses this.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=29956

Best Regards,
Haneef


SK Simon Kakon November 29, 2006 02:11 PM UTC

The sample works fine.
But when I change the Format's cell ( Format = "d" or Format = "dd/MM/yyyy", it doesn't works with filter = #29/12/2006# ...

Maybe the filter format of field date is MM/dd/yyyy ??

>Hi Simon,

The GridDataBoundGrid uses a DataView.RowFilter property to handling the filtering that requires #'s around dates.

Here is a forum thread that discusses this.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=29956

Best Regards,
Haneef


AD Administrator Syncfusion Team November 30, 2006 06:44 AM UTC

Hi Simon,

Yes. DataView.RowFilter doesn't support the other format. Please refer to the below forum thread for more details.

http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework.adonet/topic16245.aspx

Best Regards,
Haneef

Loader.
Up arrow icon