Vertices are just held in a list (in creation order) so you will need a bit of simple maths to turn the x and y grid positions into the index for the correct vertex.
Something like (x * gridheight) + y
Hope this helps.
Something like (x * gridheight) + y
Hope this helps.