Re: Changing colour of line depending on product
Put this in the "Form GridLines Displayed" breakout section:
Note. The SalesOrderLineObject that is passed in to that breakout point is Nothing for me, which is why I'm using the grid object to get the part no. Must be an old bug.
- Code: Select all
If FormObject.GridManager.GridText(FormObject.grdLines, "PartNo", Row) = "1171" Then
FormObject.grdLines.Col = -1
FormObject.grdLines.Col2 = -1
FormObject.grdLines.Row = Row
FormObject.grdLines.Row2 = Row
FormObject.grdLines.ForeColor = vbBlue
End If
Note. The SalesOrderLineObject that is passed in to that breakout point is Nothing for me, which is why I'm using the grid object to get the part no. Must be an old bug.