Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

calculated field gridview asp.net

protected decimal Calculate(string a, string b)
{
    decimal ad = Convert.ToDecimal(a);
    decimal bd = Convert.ToDecimal(bd);

    if (bd == 0)
    {
        return 0; // or whatever
    }

    return ad / bd;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #calculated #field #gridview
ADD COMMENT
Topic
Name
7+8 =