Ejemplo n.º 1
0
        private void comboBoxCategory_SelectedIndexChanged(object sender, EventArgs e)
        {
            int CategoryId = Convert.ToInt32(comboBoxCategory.SelectedValue);

            dataGridView.DataSource = DAO.GetProductsByCategoryId(CategoryId);
        }