Ejemplo n.º 1
0
    private void FillGridViewCatagory(SqlInt32 UserID)
    {
        CatagoryDAL dalCatagory = new CatagoryDAL();
        DataTable   dtCatagory  = new DataTable();

        dtCatagory = dalCatagory.SelectAll(UserID);

        if (dtCatagory != null && dtCatagory.Rows.Count > 0)
        {
            gvCatagory.DataSource = dtCatagory;
            gvCatagory.DataBind();
        }
        else
        {
            gvCatagory.DataSource = null;
            gvCatagory.DataBind();
        }
    }
Ejemplo n.º 2
0
        public DataTable SelectAll(SqlInt32 UserID)
        {
            CatagoryDAL dalCatagory = new CatagoryDAL();

            return(dalCatagory.SelectAll(UserID));
        }