📜  telerik raddatepicker 默认日期今天 wpf - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:39.286000             🧑  作者: Mango

代码示例1
Ok I have solved the problem. The binding DataType to the column is DateTime, which don't accept null values. Null values is what the GridView produces upon clicking add new row. When such thing happens, DateTime will auto return 01/01/0001, which is then passed to the RadDatePicker. The solution is to change the datatype to Nullable DateTime, which is 'DataType?'.