Hi
I am using raddatagridviews in vb.net. I want to check if particular item should not be enter in raddatagridview. So far I have done this but not working
Private Sub ChkDuplicateItem()
Dim Found As Boolean = False
For i = 0 To Me.dgvCore.Rows.Count - 1
If Convert.ToString(Me.dgvCore.Rows(i).Cells(3).Value.ToString.Contains("Core")) = txtItemName.Text.Trim() Then
Found = True
Exit For
End If
Next
'Return Found
If Not Found Then
Me.fillGrid()
End If
End Sub
SrNo | Itemid | ItemName | Qty | Rate | Amount |
1 | 10 | KDM | 5 | 10 | 50 |
2 | 10 | KDM | 10 | 10 | 100 |
3 | 20 | Core | 25 | 4 | 100 |
4 | 20 | Core | 15 | 3 | 75 |
This Core Item should not repeat again |