private void populateTiltGrd(StandingSupportTypeExerciseCollection tiltSupportExerciseColl) { GenForm.ctnStandContainer.lyrParentLayer.tabDetailsContainer.grdSelectRow tRow = null; form.ctnStand().lyrParent().tabDetails().grdTime().setVisible(false); form.ctnStand().lyrParent().tabDetails().grdSelect().setVisible(true); if(tiltSupportExerciseColl != null) { for (int i=0; i<tiltSupportExerciseColl.size(); i++) { StandingSupportTypeExercise modal = tiltSupportExerciseColl.get(i); tRow = form.ctnStand().lyrParent().tabDetails().grdSelect().getRowByValue(modal); if (tRow != null) tRow.setColSelect(true); else { tRow = form.ctnStand().lyrParent().tabDetails().grdSelect().getRows().newRow(); tRow.setValue(modal); tRow.setColSupportType(modal.getText()); tRow.setColSelect(true); } } } }