BulitInNumberFormats with three decimal places.

1 Answer 188 Views
Grid
Umidjon
Top achievements
Rank 1
Iron
Umidjon asked on 10 Nov 2022, 03:56 PM

I need to format one of the columns with three decimal places.

In https://docs.telerik.com/devtools/winforms/api/telerik.documents.spreadsheetstreaming.builtinnumberformats , I could not find any option for the above-mentioned purpose.

I am formatting a column before the data is exported in grid. Here is a code:

I would really appreciate if you could tell me if there is such a BuiltInNumberFormat. If not,  is there Telerik class that allows me to do so? I tried incell formatting, but without success.

1 Answer, 1 is accepted

Sort by
0
Accepted
Umidjon
Top achievements
Rank 1
Iron
answered on 10 Nov 2022, 04:14 PM

Thank you, I resolved it. It seems to be as simple as :

args.Columns[1].NumberFormat="0.000";

Tags
Grid
Asked by
Umidjon
Top achievements
Rank 1
Iron
Answers by
Umidjon
Top achievements
Rank 1
Iron
Share this question
or