private void BindData()
    {
        DataTable dt = GetResultsData();

        lblReturnNumber.Text = dt.DefaultView.Count.ToString();
        QueueGrid.DataSource = dt;
        QueueGrid.DataBind();
    }
Ejemplo n.º 2
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        QueueGrid.DataSource = Session["Queues"];
        QueueGrid.DataBind();

        lblRequests.Visible = true;

        if (Session["Requests"] != null)
        {
            RequestGrid.Visible    = true;
            pnlSelection.Visible   = true;
            RequestGrid.DataSource = Session["Requests"];
            RequestGrid.DataBind();
        }
        else
        {
            RequestGrid.Visible  = false;
            pnlSelection.Visible = false;
        }
    }