private void populateAnalysisGrid(PlinthWorkAnalysisVoCollection voAnalysisColl) { if(voAnalysisColl!= null) { GenForm.grdAnalysisRow row; for(int y=0; y<voAnalysisColl.size(); y++) { PlinthWorkAnalysisVo voAna = voAnalysisColl.get(y); int a =0; for(a=0; a<form.grdAnalysis().getRows().size(); a++) { row = form.grdAnalysis().getRows().get(a); if(row.getColBalanceAnalysis().equals(voAna.getBalanceAnalysis())) { row.setColDynamic(voAna.getDynamic()); row.setColStatic(voAna.getStaticAnalysis()); break; } } if(a == form.grdAnalysis().getRows().size()) { row = form.grdAnalysis().getRows().newRow(); row.setValue(voAna); row.setColBalanceAnalysis(voAna.getBalanceAnalysis()); row.setColDynamic(voAna.getDynamic()); row.setColStatic(voAna.getStaticAnalysis()); } } } }