Compare gridview first row with name of excel file using c#

Gridview as follows

Farmerid Farmno Verified

114705 1

i have one button called upload file. for example if user select file name is 114705_1.gpx means.

in gridview verified column i have to display yes.

i have to validate gridview first row 114705 with name of selected file is matching with upload file.

for that how to do in asp.net using c#

please how to do.