private void DisplaySchedulingGrid() { Whitfieldcore wc = new Whitfieldcore(); DataSet _dsScheduling = new DataSet(); lblTotAnnFabHours.Text = wc.GetCurrentContractValue(Convert.ToInt32(ViewState["twc_project_number"])).ToString(); lblTotScheduledHours.Text = wc.GetTotalscheduledCashFlow(Convert.ToInt32(ViewState["twc_project_number"].ToString())); if (wc.IsCashFlowScheduleDataExists(Convert.ToInt32(ViewState["twc_project_number"].ToString()))) { pnlActSchedule.Visible = true; _dsScheduling = wc.GetCashflowListing(ViewState["twc_project_number"].ToString()); this.PopulateDataGrid(_dsScheduling, grdSchedule); } }