i made a form with datagridview which get its values from excel file and make some changes on its columns to prepare it to be saved in sql database
so i need your help to compare one datagridview column with listbox items and get the result in another column for example in datagridview column value "MR Naveed" and my listbox "MR Naveed" is "MN" i need to check every "Mr Naveed" to be "MN" i made this code
Dim s As String
s = ListBox1.FindStringExact(DataGridView1.Rows(i).Cells(4).Value)
DataGridView1.Rows(i).Cells(9).Value = s
it works but the result is the value array like 0,1,2 in the listbox but i need the name
please i need your help