private void grvRestaurants_RowDeleted(object sender, DevExpress.Data.RowDeletedEventArgs e) { var item = e.Row as Logic.Entities.Restaurant; if (_restaurantServiceClient.DeleteRestaurant(item.Id)) { MessageBox.Show("Restaurant deleted sucessfully", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); } }