ref #6597 Enhance selection handling for DetailsView