Question3Replies143Views NagaSaiJ Member since 2018 15 posts Tech Mahindra Posted: 10 months agoLast activity: 10 months ago Solved Need to show Delete icon in a Grid based on row index of the PageList..!HiI've a requirement to show Delete icon in a Table(Source- PageList) based on the Row Index of that Pagelist.I need to show delete icon only for the Last Row of that Table.Configured When Conditions(when rule) on the visibility of that "Delete" Icon i.e.,When Rule:Param.pyForEachCount == @Utilities.LengthOfPageList(pyWorkPage.PageList).But It didn't worked..!!Can I've any alternative/Suggestions..??Thanks in Advance. Low-Code App Development Dev/Designer Studio Case Management Decision Management ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Posted: 10 months agoUpdated: 10 months agoKurtW_GCS PEGA replied to NagaSaiJHi, Was the behavior just that none of the rows had a delete button? If you trace the load of the grid, does param.ForEachCount equal the last index of the pagelist when the when rule executes? Hope this helps! -Kurt Posted: 10 months agoNagaSaiJ Tech Mahindra replied to KurtW_GCSWas the behavior just that none of the rows had a delete button? - Yeah, Delete Icon/Button should be displayed only for the last row of the table. I've traced the load of the Grid, I've observed all the When-Rule steps, In all those steps, param.pyForEachCount was 3(in all the steps..!). I don't know why..!! Accepted Solution Posted: 10 months agoNagaSaiJ Tech Mahindra replied to NagaSaiJ**Resolved** As said in the above When Rule Param.pyForEachCount == @Utilities.LengthOfPageList(pyWorkPage.PageList). Instead of using "pyForEachCount", I've used "pega_RLindex"; which stores the same value as pyForEachCount. Corrected/Worked When Rule Param.pega_RLindex == @Utilities.LengthOfPageList(pyWorkPage.PageList).