Is it possible to show files from 2 different folders (c:\test1 and c:\test2) in the same gridview?
I work in VB.net (VS 2010)
Thanks!
Is it possible to show files from 2 different folders (c:\test1 and c:\test2) in the same gridview?
I work in VB.net (VS 2010)
Thanks!
Try something like this:
You hadn't shown your code in your question, so the above example demonstrates how this might be done generally.
yes. Add them both as collections to List() or any other collection type. Then bind that set to the gridview.
Yes. Get list of all the files using
Directory.GetFiles()
into a singleIEnumerable<string>
and bind it to a GridView.This is how you'll do it in c#.