Solved

How to Populate a data set

Posted on 2009-06-28
2
259 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
ID: 24733626
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
ID: 24740913
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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