I'm trying to get the value of certain item from listBox, because in my listBox1 I have two different values that have comes from dataGridView. Now, I need to separate these two items separately because it must add to the database in two different columns.
Now, how to to get only value of Name, and only value of Surname.
I tried like the following code, but I get an error(invalidargument=value of '1' is not valid for 'index'. parameter name: index)
Attachment: Capture.rar