コード例 #1
0
        private void SetData()
        {
            List <ProductType> allProductType = ViewProductTypeController.GetAllProductTypeController();

            GridProductType.DataSource = allProductType;
            GridProductType.DataBind();
        }
コード例 #2
0
        private void SetProductData()
        {
            if (!Page.IsPostBack)
            {
                TxtProductPrice.Text = "0";
                TxtProductStock.Text = "0";
                TxtProductType.Text  = "0";
            }


            List <ProductType> allType = InsertProductController.GetAllProductTypeController();

            GridProductType.DataSource = allType;
            GridProductType.DataBind();
        }