0
I would like to know what is and what these types of codes are used for:
txtCodigo.Text = dtgProfessores.Rows[e.RowIndex].Cells["CODIGO"].Value.ToString();
txtNome.Text = dtgProfessores.Rows[e.RowIndex].Cells["NOME"].Value.ToString();
txtEndereco.Text = dtgProfessores.Rows[e.RowIndex].Cells["ENDERECO"].Value.ToString();
txtBairro.Text = dtgProfessores.Rows[e.RowIndex].Cells["BAIRRO"].Value.ToString();
txtCidade.Text = dtgProfessores.Rows[e.RowIndex].Cells["CIDADE"].Value.ToString();
I would like a clear and simple explanation. Thank you very much :)
They are probably used for content editing when selecting a line from the Gridview dtgProfessores, or just displaying in another context.
– Leandro Angelo
We have a
DataGridView
, catching the CELL["CODIGO"]
converting its value to String and assigning it totxtCodigo.Text
and so on...– Doan Casotti