Solved

How to Populate a data set

Posted on 2009-06-28
2
256 Views
Last Modified: 2012-05-07
I am new to C# and need to populate a data set from a selected path.  I have in the program a way for the user to select the required directory, and need it to pull the folder names out and populate a checked list.
0
Comment
Question by:cotj73
2 Comments
 
LVL 3

Accepted Solution

by:
DreamsTech earned 500 total points
Comment Utility
Correct me if my understanding is correct:
1>you have the complte Directory Path for which you need to populate the folder list   .

Create a Datatable with Column Path
Traverse the Complete String Path "\\" as seprator and store each path in the datatable.
eg: \\test_Dir\\Test_Child\\Test_SecChild
the Datatable will have rows having one column
test_Dir
test_child
Test_SecChild

And Filnally bind the datatable with th Grid

Hope this helps....
0
 
LVL 1

Author Comment

by:cotj73
Comment Utility
I am not trying to create the data table as a path, i am attempting to full a list of folder names in from a specified directory and fill the table.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

16 Experts available now in Live!

Get 1:1 Help Now