Change Grid Edit Link fro record

hi,
is it possible and if so how to modify the edit link of a grid based on a value?
I mean what is created automatically when a grid is associated with a form