hi
how can i change gridview value
this is my code
cs file
it is not working it gives error
pls help me
how can i change gridview value
this is my code
Code:
<asp:TemplateField HeaderText="currstatus" SortExpression="currstatus">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%#(string) printstatus((string)Eval("currstatus")) %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
Code:
public string printstatus(string val)
{
string retval="In Active";
if (val == "1")
{
retval = "Active";
}
return retval;
}
pls help me
Comment