0
txtCodigo.text = dataGridView.Rows[indiceDaLinha].Cells["nomeDaCelula"].Value.toString();
To name the same thing.
For the Radios you do:
if(dataGridView.Rows[inicideLinha].Cells["nomeDaCelula"].Value.toString().Equals("Inativa"))
{
radioButtonInativa.checked = true;
}
You may need to make some corrections regarding the name of your components. But this is how I would do.
Web Forms? Or Windows
– Marco Souza
The form type, right? if it is Windows Form.
– enzo