To access directory information, we can use either the “Directory” or the “DirectoryInfo” class; in case if we need to access file information, we have to use either the “File” class or the “FileInfo” class.
To display a directory files in a DataGrid ; we have to assign the string array to the DataSource Property and then call the DataGrid using DataBind() Method. We are using DirectoryInfo for listing directory files, however we can also display other attributes like file size etc…

Comments on: "ASP.Net FileSystem Using GridView" (1)
Perfect, so simple and to the point. Thanks!