Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8732333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:25:15+00:00 2026-06-13T09:25:15+00:00

How do I load data from the local disk into a gridview? The data

  • 0

How do I load data from the local disk into a gridview?
The data is mp3 files. But text files should be an option too.
And it’s not the content of the text file I want, just the file name.
This goes for mp3 files too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:25:16+00:00Added an answer on June 13, 2026 at 9:25 am

    you can use this code :

    DirectoryInfo di = new DirectoryInfo("your DriverName://");
    dataGridView1.DataSource = di.GetDirectories();
    

    or you can use Linq for filter,…

    DirectoryInfo di = new DirectoryInfo("your DriverName://")
    var query = from p in di.GetDirectories()
                where p.Extension=="*.mp3"
                select new {Name=p.FullName };
     dataGridView1.DataSource = query.ToList();
    

    and for get Directory Name:

    DirectoryInfo di = new DirectoryInfo("your DriverName://");
    var query = from p in di.GetDirectories()
                select new { DirectoryName=p.FullName};
    dataGridView1.DataSource = query.ToList();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to load some data from a text file into mysql. I
Apache Pig can load data from Hadoop sequence files using the PiggyBank SequenceFileLoader :
i want to insert data from an excel file into a local database in
I am using the following statement to load data from a file into a
I'm trying to load data from a csv file on my local machine to
I used RestKit to load XML data from a resource. That worked perfect, but
I'm using MySQL's LOAD DATA LOCAL INFILE SQL statement to load data from a
I'm trying to load an image file from my local disk and output it
I want to load data from MySql database to a HTTP form When I
How to load data from JDBCTemplate.queryForMap() as it returns the Map Interface? How is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.