Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

How to format Datagridview columns to numeric.?? Column.Defaultcellstyle.format does not work

$
0
0
Good day.

I created a unbound datagridview, has 4 columns, with one column that is called an "Amount" Column.

I wanted to display the values under the Amount column to be formatted into Numeric (123,456.00), so I right-clicked the datagridview, set the defaultcellstyle.format of the Amount Column to Numeric (N2).

However, when i run the form and entered a value in the Cell under Amount Column, it still would not format the Number to Numeric..?

How can I Solve this, any help would be be greatly appreciated.

Thank you very much.


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>