How to get the Value of a Selected cell in DataGrid using c#(windows application)
Double click the DataGrid and write below code:
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
button1.Text = dataGridView1.CurrentCell.Value.ToString();
}

it does not work in asp.net. I ve mail id column in my gridview i want to display that mail address into particular text box. pls can anyone suggest me how can i do like that?