title: X++ loop through lines in grid control
body: <p>So the idea is to assign an icon to a Window control in the Grid control of a form (PurchTable), depending on whether a record has a document attached to it. </p>
  
  <p>I use a select statement to check DocuRef if there is match between RefRecId and current RecId.</p>
  
  <p>So the question is, how do I assign a different icon to each line? Can't really figure it out :/</p>