0
在在DataGridView
TextBox
當我示例50.30 在類型,然後我使用其轉換爲decimal
:DataGridView的文本框的值轉換爲十進制數(固定點)
decimal money = Convert.ToDecimal(dgv.Rows[0].Cells[2].Value);
其轉換爲5030,而不是50.30 ... :(
,或者如果它是50我需要它轉換爲50,0000像SQL Server中的錢類型。
任何幫助嗎?
謝謝