Click here to Skip to main content
15,895,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi can any one help me to solve this..
am not trying to solve this

here is my code
decimal grdTotal=0;
C#
protected void GridView1_RowDataBound1(object sender, GridViewRowEventArgs e)
    {


        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            decimal rowTotal = Convert.ToDecimal
                (DataBinder.Eval(e.Row.DataItem, "tsMonday"));

            grdTotal = grdTotal + rowTotal;

        }

        if (e.Row.RowType == DataControlRowType.Footer)
        {
            Label lbl = (Label)e.Row.FindControl("lblTotal");
            lbl.Text = grdTotal.ToString("c");
        }




    }



decimal rowTotal = Convert.ToDecimal

this line am getting error..

please suggest me..
thank you
Posted

1 solution

Refer this and try to write format like they said-

http://forums.asp.net/t/1162142.aspx/1[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900