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

thousand seperator

Thread ID:





16912 Jul 27,2004 12:49 PM UTC Jul 27,2004 12:58 PM UTC WinForms 1
Tags: GridControl
Rick Davis
Asked On July 27, 2004 12:49 PM UTC

I have datatable that I am using to populate a databound grid. I need to set a thousand seperator on one column and limit the number digits after the decimal in three other columns. How can I do this?

Administrator [Syncfusion]
Replied On July 27, 2004 12:58 PM UTC

For the GridBoundColumn, you can set the style.CellValueType and style.Format to control the display of numbers. GridStyleInfo style = grid.Binder.InternalColumns["SomeCol"].StyleInfo; style.CellValueType = typeof(double); style.Format = "#,###.###"; //comma plus 3 dec places If you have explicitly added GridBoundColumns, then you get the column from teh grid.GridBoundColumns collection instead of the binder.InternalColumns. To not see a comma, and have 3 optional decimal places, try "#.###". Or to have 3 required places, try "#.000"


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon