Please see the lines in 'Bold, Underline and Italic'
Dim CheckValue As String
For i As Integer = 0 To
(grdInvoice.Rows.Count) – 2
CheckValue = grdInvoice.Rows(i).Cells(0).Value.ToString
If CheckValue = Item Then
grdInvoice.Rows(i).Cells(0).Selected = True
MsgBox("Item Already Exists")
grdInvoice.ActiveRow = grdInvoice.Rows(j)
grdInvoice.ActiveCell = grdInvoice.Rows(i).Cells(0)
Exit For
End If
Next