Question: how to get selected row cell value from gridview in c# windows application?
Answer: private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
if (e.RowIndex >= 0)
{
DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
txtID.Text = row.Cells[0].Value.ToString();
txtName.Text = row.Cells[1].Value.ToString();
txtCountry.Text = row.Cells[2].Value.ToString();
}