Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/07/2009, 12:19
Avatar de Dradi7
Dradi7
 
Fecha de Ingreso: junio-2008
Ubicación: Peru - Lima
Mensajes: 1.518
Antigüedad: 15 años, 11 meses
Puntos: 220
Respuesta: Ayuda con seleccion de listview

puesde utilizar el livstview.SelectedItems

Ejm:

Código C#:
Ver original
  1. // Primera Manera
  2. ListView.SelectedListViewItemCollection Lv;
  3. Lv = ListView1.SelectedItems;
  4. if(Lv!=null)
  5. {
  6.      textbox1.Text = Lv[0].SubItems[1].Text;
  7.      textbox1.Text = Lv[0].SubItems[2].Text;
  8. }
  9. // Segunda Manera
  10. ListViewItem Lv;
  11. Lv = ListView1.FocusedItem;
  12. if(Lv!=null)
  13. {
  14.      textbox1.Text = Lv.SubItems[1].Text;
  15.      textbox1.Text = Lv.SubItems[2].Text;
  16. }
__________________
La clave de todo triunfador es eliminar todas sus excusas y sus limitaciones