Esempio n. 1
0
        public void DataGrid2Yenile()
        {
            dataGridView2.Rows.Clear();
            List <Product> prlst = HelperProduct.GetList();

            foreach (var item in prlst)
            {
                if (item.stock > 0)
                {
                    dataGridView2.Rows.Add(item.productName, item.stock);
                }
            }
        }