private void AddOtherItem_Load(object sender, EventArgs e) { StoreDAO aStoreDao = new StoreDAO(); List <Store> aList = new List <Store>(); aList = aStoreDao.GetAllotherCategory(); categorycomboBox.DataSource = aList; categorycomboBox.ValueMember = "StoreId"; categorycomboBox.DisplayMember = "ItemName"; }