开发者

how to get selected value from databound multiextended listbox

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜