GridDateTimeColumn with null binded values
Hi Silvio,
Thank you for contacting Syncfusion Support.
You can display a null value on GridDateTimeColumn using NullText and NullValue properties. Also you can remove date from the cell by setting CanEdit as True as shown in the below code example,
Code Example:
|
<Syncfusion:GridDateTimeColumn MappingName="JoiningDate" CanEdit="True" NullText="" |
We have prepared a sample for your requirement and please find the sample from the following location,
Sample Link: http://www.syncfusion.com/downloads/support/forum/122131/ze/DateTime_NullValue1715036667
Regards,
Jayapradha
Attachment: Cattura_92bace23.zip
You can allow null values in GridDateTimeColumn by setting AllowNullValue property to true.
|
<Syncfusion:GridDateTimeColumn MappingName="JoiningDate" |
documentation :
http://help.syncfusion.com/wpf/sfdatagrid/column-types?cs-save-lang=1&cs-lang=xaml#null-value-support-1
Thanks,
Sivakumar
Hi Silvio,
You can allow null values in GridDateTimeColumn by setting AllowNullValue property to true.
<Syncfusion:GridDateTimeColumn MappingName="JoiningDate"
CanEdit="True" AllowNullValue="True"/>
documentation :
http://help.syncfusion.com/wpf/sfdatagrid/column-types?cs-save-lang=1&cs-lang=xaml#null-value-support-1
Thanks,
Sivakumar
Thank you very much! Now it really works!
Thank you for the update.
Please let us know if you need any other assistance.
Regards,
Ashwini P.
- 5 Replies
- 4 Participants
-
SI Silvio
- Feb 18, 2016 03:43 PM UTC
- Feb 22, 2016 12:59 PM UTC