how do add the total of items in listview column and display the result in a text box
macphill 0 Newbie Poster
Recommended Answers
Jump to PostDo you know how to access the individual cells in the rows? Show us what you have.
Jump to PostYou can iterate through the rows by
For Each item As ListViewItem In ListView1.Items 'code here Next
and you can access the columns (zero relative) from within that loop by
item.SubItems(0).Text item.SubItems(1).Text etc.
Convert the values to numeric as appropriate
All 6 Replies
Hazuan Nazri 0 Junior Poster in Training
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
macphill 0 Newbie Poster
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
macphill 0 Newbie Poster
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.