how can i change the value of data in crystal report base on the selected item in listview?
i am using mysql and visual studio 2012
Shodow
3
Junior Poster
Recommended Answers
Jump to PostDoes your report cycle through the listview's items?
If so, just execute the report on the listview's selcted items.
Example:
For Each itm as ListViewItem in ListView1.SelectedItems 'Do Work Next
Jump to PostPost the part of your code you are using the generate the reports
We can't help if we can't see the code. =)
Jump to PostIf you have a unique value in the selected listviewitem (I normally make it the first value) you can do this:
"SELECT * FROM table WHERE column='" & listview1.SelctedItems(0).Text & "'" 'This is assuming that the first column contains the unique value. 'If not, you will have …
All 11 Replies
Begginnerdev
256
Junior Poster
Shodow
3
Junior Poster
Begginnerdev
256
Junior Poster
Shodow
3
Junior Poster
Begginnerdev
256
Junior Poster
Shodow
3
Junior Poster
Shodow
3
Junior Poster
Begginnerdev
256
Junior Poster
Shodow
3
Junior Poster
Begginnerdev
256
Junior Poster
Shodow
3
Junior 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.