private void LoadCategory()
        {
            List <CategoryDetails> lstcat = blc.GetAllCategory();

            CategoryDetails cat = new CategoryDetails();

            cat.CategoryName = "Choose Category";
            lstcat.Insert(0, cat);

            cboCategoryName.DataSource    = lstcat;
            cboCategoryName.DisplayMember = "CategoryName";
            cboCategoryName.ValueMember   = "CategoryId";
        }
Beispiel #2
0
        private void LoadGrid()
        {
            AllFoodCategory        afc   = new AllFoodCategory();
            List <CategoryDetails> lstcd = blc.GetAllCategory();

            afc.grdCategory.DataSource = lstcd;
        }
        private void LoadCategory()
        {
            List <CategoryDetails> list = blcat.GetAllCategory();
            CategoryDetails        cd   = new CategoryDetails();

            cd.CategoryName = "Choose Category";
            list.Insert(0, cd);
            cboCategory.DataSource    = list;
            cboCategory.DisplayMember = "CategoryName";
            cboCategory.ValueMember   = "CategoryId";
            cboCategory.SelectedIndex = 0;
        }
Beispiel #4
0
        private void LoadCategory()
        {
            List <CategoryDetails> lsttb = blcat.GetAllCategory();
            CategoryDetails        pro   = new CategoryDetails();

            pro.CategoryName = "Choose Category";
            lsttb.Insert(0, pro);

            cmbCategory.DataSource    = lsttb;
            cmbCategory.DisplayMember = "CategoryName";
            cmbCategory.ValueMember   = "Id";
        }
        private void LoadGrid()
        {
            List <CategoryDetails> lstcat = blc.GetAllCategory();

            DataGridView1.DataSource = lstcat;
        }
Beispiel #6
0
        public ActionResult CreateSubCategories()
        {
            ViewBag.Name = cat.GetAllCategory();

            return(View());
        }
        private void LoadGrid()
        {
            List <CategoryDetails> lstcd = blc.GetAllCategory();

            grdCategory.DataSource = lstcd;
        }
Beispiel #8
0
        private void LoadCategory()
        {
            DataTable dt = blc.GetAllCategory();

            dataGridView1.DataSource = dt;
        }