I am using the code below to retrieve values from the selected row it works... but has a glitch.... It will only retrieve the strings if you click on the actual text in any cell of that row.... if you click anywhere of white area in a cell of that row it will not execute .. Any ideas as to how to fix this glitch??
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
listBox1.ClearSelected();
OnlineNamebox.Text = "";
OnlinePasswordbox.Text = "";
OnlineEmailbox.Text = "";
OnlineShortcodebox.Text = "";
ListCombobox.Text = dataGridView1.CurrentRow.Cells[0].Value.ToString();
OnlineNamebox.Text = dataGridView1.CurrentRow.Cells[1].Value.ToString();
OnlineEmailbox.Text = dataGridView1.CurrentRow.Cells[2].Value.ToString();
OnlinePasswordbox.Text = dataGridView1.CurrentRow.Cells[3].Value.ToString();
OnlineShortcodebox.Text = dataGridView1.CurrentRow.Cells[5].Value.ToString();
}