Exemplo n.º 1
0
    private void FillRepeatorProduct()
    {
        DataTable  dtProduct  = new DataTable();
        ProductBAL balProduct = new ProductBAL();

        dtProduct = balProduct.SelectAll();

        if (dtProduct != null && dtProduct.Rows.Count > 0)
        {
            rptProducts.DataSource = dtProduct;
            rptProducts.DataBind();
        }
    }
Exemplo n.º 2
0
    public void FillProductGridView()
    {
        DataTable  dtProduct  = new DataTable();
        ProductBAL balProduct = new ProductBAL();

        dtProduct = balProduct.SelectAll();

        if (dtProduct != null && dtProduct.Rows.Count > 0)
        {
            gvProduct.DataSource = dtProduct;
            gvProduct.DataBind();
        }
    }
Exemplo n.º 3
0
    private void FillProductGridView(SqlInt32 UserID)
    {
        ProductBAL balProduct = new ProductBAL();

        DataTable dtProduct = balProduct.SelectAll(UserID);

        if (dtProduct != null && dtProduct.Rows.Count > 0)
        {
            gvProduct.DataSource = dtProduct;
            gvProduct.DataBind();
            lblMessage.Text = "No Of Record : " + dtProduct.Rows.Count.ToString();
        }
        else
        {
            lblMessage.Text = "No Data Here";
        }
    }