How to wait for the user to select one of the datagridview rows?
- by Jhon
I have a datagridview populated with some Names, I want to perform a check of all the Name in another database with the Names in datagridview and add the Surnames to the adjacent cell when a match is found, this I am achieving by string compare method.
My Problem is that due to typing inconsistencies & at times with two people having same names some of the names are not being adjudged properly.
What I want is to give user the choice to either choose one of the names present in Datagridview which they consider is best match or enter both First Name & Surname in a new row. To achieve this I want the program to wait until user has clicked on one of the rows in the datagridview.
Is there a way to wait to this effect?
Thanks
Jhon