Hello.
I use DataGrid dynamic data from witch datasource is a JSON from an API call.
I cannot format Decimal and DateTime data types.
I use like this:
Can you give me some advice?
Thank you in advance
Hello.
I use DataGrid dynamic data from witch datasource is a JSON from an API call.
I cannot format Decimal and DateTime data types.
I use like this:
Can you give me some advice?
Thank you in advance
You can use String.Format() similar to various examples in our demos.
When you use Template it will override the FormatString setting. Either remove the template or change it to use String.Format
as @enchev suggested:
<Template>
@string.Format("{0:d}", context[column.Key])
</Template>