Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieve values from a ListView
Message
 
À
31/08/2005 11:01:40
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01045471
Message ID:
01045767
Vues:
23
Hello Bonnie, just thought I'd bring you up to date with lv saga, I tried the code you suggested but received an error ( not verbatim ) stating "Cannot cast Listview.Subitem to type int", I then tried this code which works
    ListViewItem item = this.lvClaims.SelectedItems[0];
    int paydetailsid = Convert.ToInt32(item.SubItems[10].Text);
    int payaddressid = Convert.ToInt32(item.SubItems[11].Text);
thanks for putting me on the right track, is there a way of casting the sender parameter to retrieve the same info ?
Regards,
Peter J. Kane



Pete
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform