Link to home
Start Free TrialLog in
Avatar of T Hoecherl
T HoecherlFlag for United States of America

asked on

Capture name of item in checked list box

A checked list box looks like the image in the attached:
BatchList.docx

As I cycle through the list, I want to capture the batch name of each checked item.  My code to test whether I am capturing the batch name looks like this:

        For Each itemChecked In clbBatches.CheckedItems
            strBatch = itemChecked.ToString
            MsgBox(strBatch)
        Next

But in the message box, instead of the batch name, I am getting System.Data.DataRowView as in the attached image.  How do I need to modify my code so I capture the batch name in the strBatch variable?

T
ASKER CERTIFIED SOLUTION
Avatar of T Hoecherl
T Hoecherl
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial