The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
One cell type is set as MonthCalendar as :
e.Style.CellType = "MonthCalendar";
e.Style.CellValueType = typeof(DateTime);
e.Style.Format = "M/d/yyyy";
Why the text in the cell is shown as "12/31/2005 12:00:00 AM", instead of "12/31/2005". By the way, it''s possible for the user to enter the date?
Thanks.
ADAdministrator Syncfusion Team January 5, 2006 01:00 PM UTC
Hi Hui,
Your code works fine. If values are set for the MonthCalender cell, try setting it in style.Text for grid control to see if that helps. It is possible for the user to enter dates in those cells.
Regards,
Calvin
HZHui ZhongJanuary 5, 2006 06:13 PM UTC
How to set the style.Text to avoid the cellvalue is shown as short date format instead of "12/31/2005 12:00:00 AM", and how to make it possible for the user to enter the dates in those cells? Thanks.
>Hi Hui,
>
>Your code works fine. If values are set for the MonthCalender cell, try setting it in style.Text for grid control to see if that helps. It is possible for the user to enter dates in those cells.
>
>Regards,
>Calvin
ADAdministrator Syncfusion Team January 6, 2006 05:05 AM UTC
Hi Hui,
Here is a sample for grid control which sets the value in style.Text and allows the user to enter dates.
Regards,
Calvin.
Thanks.
>Hi Hui,
>
>
>Here is a sample for grid control which sets the value in style.Text and allows the user to enter dates.
>
>
>Regards,
>
>Calvin.