Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieve values from a ListView
Message
 
To
31/08/2005 11:01:40
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01045471
Message ID:
01045767
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform