Пример #1
0
    /// <summary>
    /// Method which loads the gridview with all the Sells.
    /// </summary>
    public void loadGridView()
    {
        Products sells = new Products();
        DataTable dt = sells.getAllSells();

        if (dt != null && dt.Rows.Count > 0)
        {
            GridView1.DataSource = dt;
            GridView1.DataBind();
        }
        else
        {
            this.setNotification("error", "No hay ventas", "No se han registrado ventas todavía");
        }
    }
Пример #2
0
    public void loadGridView()
    {
        Products sells = new Products();
        DataTable dt = sells.getAllSells();

        if (dt != null && dt.Rows.Count > 0)
        {
            GridView1.DataSource = dt;
            GridView1.DataBind();
        }
        else
        {
            this.setNotification("error", "No hay ventas", "No haz realizado ninguna venta al parecer...");
        }
    }