First of you have to write the code to fill a grid view then you have to write code
textbox1.text=dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
the above code you can write on button click or gridview selection change event
Solution By:
Kabir
EmailIDRemoved@gmail.com