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.
Unfortunately, activation email could not send to your email. Please try again.

Cell format

Thread ID:

Created:

Updated:

Platform:

Replies:

1181 Oct 2,2002 05:29 AM Oct 3,2002 01:56 AM Windows Forms 2
loading
Tags: GridControl
Cyrille Claustre
Asked On October 2, 2002 05:29 AM

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.

Administrator [Syncfusion]
Replied On October 2, 2002 01:11 PM

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";

Cyrille Claustre
Replied On October 3, 2002 01:56 AM

That's it ! Thank you.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;