private void DGVCount_FirstReload() { DGVCount.Rows.Clear(); cafeList = Cafe.Get(); foreach (Cafe cafe in cafeList) { if (GetCafeServ(cafe) == true) { DGVCount.Rows.Add(cafe.idcafe, cafe.address, Cafe.GetCountServe(cafe.idcafe), Cafe.GetPostCafe(cafe.idcafe)); } } for (int i = 0; i < DGVCount.RowCount; ++i) { DGVCount.Rows[i].Selected = false; } choosenIndexCafe = -1; }