We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Cell format

I can't manage to force a number format in a cell. I tried Format = "###,00" on the cell, it compiles, runs, but still displays 6 decimal digits. Where's my mistake ? Thank you.

2 Replies

AD Administrator Syncfusion Team October 2, 2002 05:11 PM UTC

Here code that displays 2 decimal places. Make sure you also set the CellValueType for your cells. this.gridControl1[1,1].CellValueType = typeof(double); this.gridControl1[1,1].CellValue = 1.1d; this.gridControl1[1,1].Format = "F2";


CC Cyrille Claustre October 3, 2002 05:56 AM UTC

That's it ! Thank you.

Loader.
Live Chat Icon For mobile
Up arrow icon