Hello,
I have a dataset in which I am checking by using the following code. I have this dataset bound to a datagrid.
Dim row As DataRow
For Each row In gModelTagsDS.Tables("quantity").Rows
If row("quantity") < 0 Then
MsgBox("Quantity must be a whole number")
Exit Sub
End If
Next
What I want to do is when it hits the Exit Sub point to the row in the datagrid which contains the value less than 0. Any help would be greatly appreciated. TIA!
MAC