Hi,
I am using an ASP.NET GridView
control with a TemplateColumn
which has a TextBox
in the ItemTemplate
. I am binding the Text
of the TextBox
with the values from database. The database holds these values with five decimal points, and for the interface I would like to display only two decimals.
The user can make changes to this grid. When I'm saving, I would like to be able to get all five decimals for the values that are not changed. Since it is displayed as two decimals, I was only able to read two decimals on postback? Is there a way around this other than saving the actual value in a hidden variable?
Thanks,
sridhar