Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
16912 | Jul 27,2004 12:49 PM UTC | Jul 27,2004 12:58 PM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.