private void dataGridView1_DoubleClick(object sender, EventArgs e) { int ID = (Int32)dataGridView1.CurrentRow.Cells[0].Value; model get = new model(); DtoDestino d = get.getDestinoId(ID); textBoxID.Text = d.id.ToString(); textBoxNome.Text = d.nome; textBoxDocumento.Text = d.documento; textBoxEndereco.Text = d.endereco; textBoxLatitude.Text = d.latitude.ToString(); textBoxLongitude.Text = d.longitude.ToString(); textBoxTransportadora.Text = d.transportadora; textBoxBairro.Text = d.bairro; }