Solved

How to Populate a data set

Posted on 2009-06-28
2
258 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help on C# Linq query on object 6 63
Wav problem 4 26
2 questions 10 25
Disable Security Alert  popup in Winforms  embedded webbrowser. 1 30
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…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 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