Solved

How to Populate a data set

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
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 video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

626 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