COMPILATION ERROR C# Compiler Error Message: CS1513: } expected

I am getting the following message with the attached .cs code.  It is stating that line 58 is expecting "}".  Any help would be appreciated.
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MelQuery2 : System.Web.UI.Page
    decimal AssignedTotal = 0;
    decimal CompletedTotal = 0;
    decimal DeferredTotal = 0;

	protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
	if (e.Row.RowType == DataControlRowType.DataRow)
            // add the Assigned and Completed and Deferred to the running total variables
           // AssignedTotal += Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, "Assigned"));
         //   CompletedTotal += Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, "Completed"));
        //    DeferredTotal += Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, "Deferred"));

   object ro = DataBinder.Eval(e.Row.DataItem, "Assigned");
   if(ro != DBNull.Value)
      AssignedTotal += Convert.ToDecimal(ro);
   object rt = DataBinder.Eval(e.Row.DataItem, "Completed");
   if(rt != DBNull.Value)
       CompletedTotal += Convert.ToDecimal(rt);
   object rt = DataBinder.Eval(e.Row.DataItem, "Deferred");
   if(rt != DBNull.Value)
       DeferredTotal += Convert.ToDecimal(rt);
        else if (e.Row.RowType == DataControlRowType.Footer)
            e.Row.Cells[7].Text = "Sub Totals:";
            // for the Footer, display the running totals
            e.Row.Cells[4].Text = AssignedTotal.ToString("##.#");
            e.Row.Cells[5].Text = CompletedTotal.ToString("##.#");
            e.Row.Cells[6].Text = DeferredTotal.ToString("##.#");
            e.Row.Cells[1].Text = "OT/Rate - %";
			Decimal otrate= (CompletedTotal)/(AssignedTotal;
			e.Row.Cells[2].Text = otrate.ToString("0.0%"); 
            e.Row.Cells[3].HorizontalAlign = e.Row.Cells[6].HorizontalAlign = HorizontalAlign.Center;
            e.Row.Font.Bold = true;                             

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you need } at line 39

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You need two things:
1) '}' at line 59
2) ')' at line 49
BOEING39Author Commented:
Both answers were partially correct.  Thank you.

Needed Brace"}" on line 39 and Paren ) on line 49 thx.......
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.