I have Textbox which takes decimal values. I have written Keypress event to enter decimal numbers. But when I am trying to convert the value in the textbox to Decimal format to store in database, it is only converting it to Integer.
I am trying to convert text to decimal as follows:
dr["Total Amount"] = Decimal.Parse(txtTotalAmount.Text.ToString());
well I am using the above code with the datagridview
.