简体   繁体   中英

How to set datetime value as null in ultrawingrid

view to bind data from Data-source and displaying the data in ultrawingrid when the date field is having System.DateTime.MaxValue I need to set a null or empty value in it. I was unable to set it.

You can't set DateTime to null. It's value type but not reference type. Like structures, int, double, etc. You can use Nullable<DateTime> (the same = DateTime? ). Or instantiate it with default value var someDateTime = default(DateTime);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM