private void RemoveAssertion() { if (ListSystemIdAssertionToRemove != null && ListSystemIdAssertionToRemove.Count > 0) { List <Assertion> listAssertionToRemove = (from assertion in Assertions where ListSystemIdAssertionToRemove.Contains(assertion.SYSTEM_ID.ToString()) select assertion).ToList(); if (ws.RemoveAssertions(listAssertionToRemove.ToArray())) { Assertions = (from assertion in Assertions where !ListSystemIdAssertionToRemove.Contains(assertion.SYSTEM_ID.ToString()) select assertion).ToList(); this.grid_rowindex.Value = "0"; BuildGrdAssertions(); BuildPanelAssertion(); HttpContext.Current.Session.Remove("ListSystemIdAssertionToRemove"); } } }