can anyone tell me if there are any methods of the datagridview control object that will capture which row the user has selected and retrieve a value from a field in that row? ex- user clicks on second row and i want to retrieve the "email" field from that row and put it in a textbox. I have...
dim blnFound as boolean
dim dr as datarow
ForEach dr In ds.Tables("dtCustomers").Rows
If dr("Phone").Trim = txtPhone.Text.Trim Then
blnFound = True
intCustID = dr("CustID")
MessageBox.Show("Found")
Else
blnFound = False
MessageBox.Show("Not Found")
EndIf
Next
Any ideas why I always get back a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.