How can I convert the value of ASP.NET ((TextBox)Gridview1Row.FindControl("Amount")).text
of its value to Float
.
foreach (GridViewRow Gridview1Row in Gridview1.Rows)
{
DataRow OneDataRow;
OneDataRow["Amount"]= ((TextBox)Gridview1Row.FindControl("Amount")).text //Need to convert to float
}
I'm having incorrect datatype format.
I tried float.Parse
and (float)
and still having an error.
Thanks in advance