Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. 1 Guilherme
  2. 2 Alejandro
  3. 3 Thiago
  4.  
  5. da1.Fill(dt1);
  6. BindingSource src = new BindingSource();
  7. src.DataSource = dt1;
  8. comboBox1.DataSource = src;
  9. comboBox1.ValueMember = "ntj_id";
  10. comboBox1.DisplayMember = "ntj_descricao";
  11.  
  12. int abre = comboBox1.FindString("Alejandro");
  13. comboBox1.SelectedItem = abre;
  14.  
  15. comboBox1.SelectedIndex = abre;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement