protected void GridPackage_Sorting(object sender, GridViewSortEventArgs e)
    {
        DataSet ds = obj.DisplayBookingPackgeInfo("select * from tblPackageBookings order by " + e.SortExpression);

        GridPackage.DataSource = ds.Tables[0];
        GridPackage.DataBind();
    }
    public void GetData()
    {
        DataSet ds = obj.DisplayBookingPackgeInfo("select * from tblPackageBookings");

        GridPackage.DataSource = ds.Tables[0];
        GridPackage.DataBind();
    }
Exemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["User"] == null)
     {
         Response.Redirect("frmLogin.aspx");
     }
     if (!IsPostBack)
     {
         DataSet ds = obj.GetPackageTours("select * from tblPakageInfo");
         GridPackage.DataSource = ds.Tables[0];
         GridPackage.DataBind();
     }
 }
Exemplo n.º 4
0
 private void GridPackage_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
 {
     GridPackage.SetRuningNumber(0);
 }