modified getselectedCase for subrow