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.
How do I format a date in a bound datagrid?
I've tried changing the styleinfo of a boundcolumn but it keeps giving me the basic format.
By the way, it is bound to a typed dataset.
I want to see the date and time.
ADAdministrator Syncfusion Team November 26, 2002 08:30 PM UTC
Setting the StyleInfo.Format in the GridBoundColumn is the proper way to do this, but there is a bug in version 1.5 that prevents this format from 'taking'. This problem will be corrected in a 1.5.1 patch release in the next day or so.
SBSoung BaeDecember 4, 2002 06:02 PM UTC
I just wanted to ask you if this issue was fixed with the new patch?
> How do I format a date in a bound datagrid?
>
> I've tried changing the styleinfo of a boundcolumn but it keeps giving me the basic format.
>
> By the way, it is bound to a typed dataset.
>
> I want to see the date and time.
ADAdministrator Syncfusion Team December 4, 2002 06:42 PM UTC
Yes.
Stefan
SBSoung BaeDecember 4, 2002 06:58 PM UTC
> Yes.
>
> Stefan
Thanks.
I figured out a way to do this without a typed dataset using
grdResults.Binder.InternalColumns[1].StyleInfo.CellValueType = typeof(DateTime);
grdResults.Binder.InternalColumns[1].StyleInfo.Format = "ddMMMyyyy";