Esempio n. 1
0
 private void Exibir()
 {
     eq.Escalada = comboBox1.Text;
     dataGridView1.Rows.Clear();
     foreach (DataRow alpinista in ce.BuscaDadosEquipe(eq).Rows)
     {
         int n = dataGridView1.Rows.Add();
         dataGridView1.Rows[n].Cells[1].Value = alpinista["nome"].ToString().ToUpper();
         dataGridView1.Rows[n].Cells[2].Value = alpinista["funcao"].ToString().ToUpper();
         dataGridView1.Rows[n].Cells[3].Value = alpinista["cod"].GetHashCode();
     }
     data = ce.BuscaDataEscalada(eq).Rows[0][0].ToString();
 }
 private void Exibir()
 {
     eq.Escalada = comboBox1.Text;
     dataGridView1.Rows.Clear();
     foreach (DataRow alpinista in ce.BuscaDadosEquipe(eq).Rows)
     {
         int n = dataGridView1.Rows.Add();
         dataGridView1.Rows[n].Cells[0].Value = alpinista["cod"].GetHashCode();
         dataGridView1.Rows[n].Cells[1].Value = alpinista["nome"].ToString().ToUpper();
         dataGridView1.Rows[n].Cells[2].Value = alpinista["dtNasc"].ToString();
         dataGridView1.Rows[n].Cells[3].Value = alpinista["endereco"].ToString().ToUpper();
         dataGridView1.Rows[n].Cells[4].Value = alpinista["telefone"].ToString();
         dataGridView1.Rows[n].Cells[5].Value = alpinista["cidade"].ToString().ToUpper();
         dataGridView1.Rows[n].Cells[6].Value = alpinista["cep"].ToString();
     }
 }