Esempio n. 1
0
        public void PopulaCategoria()
        {
            CategoriaBO categoriaBO = new CategoriaBO();
            DataTable   dt          = new DataTable();

            dt = categoriaBO.CriaDataTableCategoria();

            txtCategoriaProduto.Items.Clear();

            foreach (DataRow item in dt.Rows)
            {
                txtCategoriaProduto.Items.Add(item["nome"].ToString());
            }
        }