且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从datetimepicker控件更改日期时过滤日期?

更新时间:2023-12-06 13:08:34

您好Jparv,

Hi Jparv,

根据您的代码,我认为有两点意见检查。

Based on your code, I think there is two point to check.

1。我建议你查看"dateTimePicker1.Value.ToString()"的值和"BookingDate"的值,你需要保持它们的格式相同。

1. I suggest you check the value of the "dateTimePicker1.Value.ToString()" and the value of the "BookingDate", you need to keep the format of them the same.

2。对于DataView的RowFilter,您将错误的值传递给RowFilter,似乎您想使用like运算符,您可以参考以下链接:

2. For the RowFilter of the DataView, you passed a wrong value to the RowFilter, it seems that you want to use the like operator, you could refer the link below:

#DataView RowFillter like operator

http ://***.com/questions/17313631/dataview-rowfillter-like-operator

#DataView RowFillter like operator
http://***.com/questions/17313631/dataview-rowfillter-like-operator

***的问候,

Best Regards,

Edward