protected void TuitionRevenueGridView_RowUpdating(Object sender, System.Web.UI.WebControls.GridViewUpdateEventArgs e) { String grossExported = (String)Session["RevenueCategory"]; String category = (String)Session["category"]; String gradUndergrad = (String)Session["gradUndergrad"]; TextBox TBox; String term; String rate; String CHG; term = TuitionRevenueGridView.Rows[e.RowIndex].Cells[0].Text; TBox = (TextBox)TuitionRevenueGridView.Rows[e.RowIndex].Cells[1].Controls[0]; CHG = TBox.Text; TBox = (TextBox)TuitionRevenueGridView.Rows[e.RowIndex].Cells[2].Controls[0]; rate = TBox.Text; StoredProcedures sp = new StoredProcedures(); sp.UpdateRevenue(FinancialYearDropDownList.SelectedValue, term, gradUndergrad, grossExported, rate, CHG); sp.UpdateRevenueExpenseSummary(FinancialYearDropDownList.SelectedValue); DisplayRevenueExpenseSummaryReport(); DisplayTuitionRevenueBreakdown(grossExported); TuitionRevenueGridView.EditIndex = -1; DisplayTuition(category); FocusAnchor.Focus(); }