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.
Up arrow icon