[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Comma Seperated String into single column data table

Posted on 2012-08-28
2
Medium Priority
?
707 Views
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

Example:
Domain Users, Domain Admins, !Email System

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

Accepted Solution

by:
Jared_S earned 2000 total points
ID: 38343318
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()

listbox1.items.add(i)

next i
0
 

Author Closing Comment

by:lrbrister
ID: 38351818
Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

872 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