E
eagle
How do I retrieve a value off a grid, then convert it to a decimal, seems
like the only thing I can do is convert it to a string?? This is what works
if the value is a string:
strValue=cType(e.Item.Cells(1).Controls(1), Textbox).text
But I get an error when I try the following:
System.InvalidCastException: Cast from type 'TextBox' to type 'Decimal' is
not valid.
Dim KW as Decimal
kw = cType(e.Item.Cells(1).Controls(1), Decimal)
What can I do to fix this?
like the only thing I can do is convert it to a string?? This is what works
if the value is a string:
strValue=cType(e.Item.Cells(1).Controls(1), Textbox).text
But I get an error when I try the following:
System.InvalidCastException: Cast from type 'TextBox' to type 'Decimal' is
not valid.
Dim KW as Decimal
kw = cType(e.Item.Cells(1).Controls(1), Decimal)
What can I do to fix this?