PC Review


Reply
Thread Tools Rate Thread

Display files and subfolders in Grid

 
 
DavidC
Guest
Posts: n/a
 
      5th Aug 2010
I have a GridView that is displaying all the files and in a specific
directory and it works fine. However, there are now folders (subfolders)
inside that directory that I would also like to display (maybe with a folder
icon which I can figure out). How can I get all files and folders to display
in my GridView? Below is the portion of code that I now use to display the
files. Thanks.

Dim dirInfo As New DirectoryInfo(strPathPhy)
Dim fileInfoArray() As FileInfo = dirInfo.GetFiles()

Array.Sort(fileInfoArray, New
CompareFileInfoEntries(compareMethod))
articleList.DataSource = fileInfoArray
articleList.DataBind()


--
David
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I display subfolders in added favourite folders V. Vamvas Microsoft Outlook Discussion 0 19th Sep 2008 12:56 PM
outlook 2003 fails to display subfolders bettiseh-bess Microsoft Outlook Discussion 1 1st Aug 2008 02:51 AM
Offline Files - Include all new subfolders but exclude selected subfolders? paulhetherington1@hotmail.com Windows XP Work Remotely 0 24th May 2006 09:23 AM
copy subfolders, replace text in files and save files in copied subfolders pieros Microsoft Excel Programming 0 1st Nov 2005 12:08 PM
Setting display for audio subfolders Windows XP Basics 1 14th Jul 2003 08:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:31 PM.