Solved

How to Populate a data set

Posted on 2009-06-28
2
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…

749 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