I
ibiza
Hi everybody,
Is there a way to convert a value with Bind()? I have a decimal(5,4)
data that I retrieve from DB, which represents a percent. For example,
50% is represented as 0.5000. When I bind the data to a gridview, I'd
like to see this value as "50", because what I do is a templatefield :
<edititemtemplate>
<asp:textbox text='<%#Bind("value")' runat="server" />
</edititemtemplate>
But is there a way to format the field so it multiplies by a hundred
before binding to the textbox?
Thank you!
ibiza
Is there a way to convert a value with Bind()? I have a decimal(5,4)
data that I retrieve from DB, which represents a percent. For example,
50% is represented as 0.5000. When I bind the data to a gridview, I'd
like to see this value as "50", because what I do is a templatefield :
<edititemtemplate>
<asp:textbox text='<%#Bind("value")' runat="server" />
</edititemtemplate>
But is there a way to format the field so it multiplies by a hundred
before binding to the textbox?
Thank you!
ibiza