[Solved]Show two decimal places in DataGridViewTextBoxCell [modified]
-
-
In my DataGridView I have three columns whose ValueType is set to double so that it'll accept only numbers. Now I want it to always show 2 decimal places like "17.00" instead of "17". How do I do that?
modified on Saturday, January 31, 2009 9:43 PM
By specifying a format string.
Christian Graus Driven to the arms of OSX by Vista.
-
By specifying a format string.
Christian Graus Driven to the arms of OSX by Vista.
-
http://www.codeproject.com/KB/grid/TNumEditDataGridView.aspx?display=Print[^]
Christian Graus Driven to the arms of OSX by Vista.
-
In my DataGridView I have three columns whose ValueType is set to double so that it'll accept only numbers. Now I want it to always show 2 decimal places like "17.00" instead of "17". How do I do that?
modified on Saturday, January 31, 2009 9:43 PM
hi.... Just Click to know more... Cell Parsing.....
-
hi.... Just Click to know more... Cell Parsing.....
-
k.... Do this.... DataGridView:>>Properties:>>Edit Columns::>Appearence::>DefualtCellStyle::>Format::>FormatType::>Numeric::>Decimal Places::>2