开发者

how to get selected value from databound multiextended listbox

开发者 https://www.devze.com 2023-01-04 06:08 出处:网络
I am using visual studio 2008 with vb as my language. I have a databound multiextended listbox. I need to get the selected value for each item that is selected. I have searched for 开发者_如何学Gotwo

I am using visual studio 2008 with vb as my language. I have a databound multiextended listbox. I need to get the selected value for each item that is selected. I have searched for 开发者_如何学Gotwo weeks trying to find and answer. Can anyone help? I would greatly appreciate it.


Something is up with the way you are binding your data to the listbox in the first place, or you need to do a "DirectCast" of the item before you can see it's contents.


How about this:

For Each Item In ListBox1.SelectedItems
            //Do Stuff here to the item
        Next
0

精彩评论

暂无评论...
验证码 换一张
取 消