Remove Edit on list page based on a condition

Can you tell me how/where to place code so I can removed edit capability on certain rows(conditionally) on the list page?

It depends on your condition, if you know it already in Page_Load, you can try, e.g.Security()->setCanEdit(FALSE);

ok so Security()->setCanEdit(FALSE); will remove the edit icon off the list page and assuming Security()->setCanDelete(FALSE); would do the same for delete?

schajx wrote:
would do the same for delete?Yes, it is.