private void MakeFlightList() { try { BLL_TRV_QuoteRequest Qr = new BLL_TRV_QuoteRequest(); DataTable dtFlight = CreateDtFlight(); DataRow dr = dtFlight.NewRow(); DataSet dsReqst = Qr.Get_Request_Ticket_Details(Convert.ToInt32(Request.QueryString["RequestID"].ToString())); dr["ID"] = System.Guid.NewGuid().ToString(); dr["FlightStatus"] = "Confirm"; if (dsReqst.Tables[0].Rows.Count > 0) { dr["DepartureDate"] = dsReqst.Tables[0].Rows[0]["DepartureDate"].ToString(); dr["TravelClass"] = dsReqst.Tables[0].Rows[0]["classOfTravel"].ToString(); dr["ArrivalDate"] = dsReqst.Tables[0].Rows[0]["DepartureDate"].ToString(); } if (dsReqst.Tables[1].Rows.Count > 0) { dr["From"] = dsReqst.Tables[1].Rows[0]["travelOrigin"].ToString(); dr["To"] = dsReqst.Tables[1].Rows[0]["travelDestination"].ToString(); } dr["TravelClass"] = "Economy"; dr["FlightStatus"] = "Confirm"; dr["ArrHour"] = "0"; dr["ArrMin"] = "0"; dr["DepHour"] = "0"; dr["DepMin"] = "0"; dtFlight.Rows.Add(dr); // ViewState["DataTable"] = dtFlight; GrdFlight.DataSource = dtFlight; GrdFlight.DataBind(); } catch { } }