Quick ListView Dilemma

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

txtLineTotal.Text = lstOrderDtl.Items(lstOrderDtl.SelectedIndices(0)).SubItems(0).Text().ToStrin

Argument Out of range exception, the value being passed is "1

Any ideas?
 
marcmc said:
txtLineTotal.Text = lstOrderDtl.Items(lstOrderDtl.SelectedIndices(0)).
SubItems(0).Text().ToString

Argument Out of range exception, the value being passed is "1"

Any ideas?

We could do with knowing the types of the various things.

Does Text() not return a string, by the way? If so, why are you calling
ToString on it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

List View Q 2
ListView problems 3
listview columnwidth to largest subitem? 4
No items displayed in Listview 4
ListView bug 4
ListView Control 6
Keep the ListView item higlighted 3
better way to change a string 2

Back
Top