public void RemoveGroup(Group gr) { int index = Groups.IndexOf (gr); if (index != -1) { Groups.RemoveAt (index); GroupHeaderSections.RemoveAt (index); GroupFooterSections.RemoveAt (index); } }