Comma Seperated String into single column data table

Posted on 2012-08-28
Last Modified: 2012-08-30
I am retrieving User Information from Active Directory.

The Groups come in as as one row string seperated by commas

Domain Users, Domain Admins, !Email System

How can I load into a datatable so that I can bind it to a ListBox?
Question by:lrbrister
    LVL 12

    Accepted Solution

    You can try to bind it from code-behind with a split with something like this ..

    Dim myString = "Domain Users, Domain admins, !Email System"

    Dim myWords as string() = myString.Split(", ")

    for each i in myWords()


    next i

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now