VBdotnet2005
asked on
Open folder in Datagridview link
I have a column call "Open". I want to add a link to open a folder. How can this be done?
ee.JPG
ee.JPG
ASKER
Please see attachment. Thank you for your help
ee.JPG
ee.JPG
Hi,
Very sorry, I saw datagrid and pressumed this was a webpage related question! Im not sure if I can help but I'll try.
You seem to have resolves the dl.text problem, and your syntax for opening explorer is correct.
I think its useColumnTextforLinkValue which is wrong in that the value it brings is just dept1. Can you put the full path into the db?
Otherwise, you'll need to ammend the value somehow to prefix the C:\Documents etc bit.
GMM
Very sorry, I saw datagrid and pressumed this was a webpage related question! Im not sure if I can help but I'll try.
You seem to have resolves the dl.text problem, and your syntax for opening explorer is correct.
I think its useColumnTextforLinkValue which is wrong in that the value it brings is just dept1. Can you put the full path into the db?
Otherwise, you'll need to ammend the value somehow to prefix the C:\Documents etc bit.
GMM
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Where does the folder exist? If its on the server then I dont beleive you can unless this is an intranet (not without it being more about domain permissions anyway).
Have you though of using an upload/ download component to display the folder contents back?
Its easy enough to list the contents of a folder back as a list and make them all hyperlinks to the files if your looking for a zero cost solution.
If you can explain a bit better what it is your trying to acheive I'll find a better answer for you.
GMM