I have gridview with several columns one of which is percent column. This is bound to a column with a SQL float data type. I format the number to be a percent string:
So the column in the database has the value of 50.0 and the gridview displays this as "50%".
e.Row.Cells[0].Text returns the formatted string "50%"
When handling the RowDataBound event how can I access the original data value of cell, 50.0, rather than the formatted string, "50%"?
If a post helps me I'll always eventually mark it as an answer. But I frequently don't mark it right away because I feel once a thread is marked as answered, discussion tends to end. And I like to discuss things a bit.