You sure can. What you need to do is to pass the file name through URL. For security reasons, I recommend that you not include the extension, so if you have worddocument.doc, just pass "worddocument".
You will need to customize your grid, so for the example above, you would need a link to a page like this:
On your wordFile.aspx page:
- Check the passed file name for special characters, to make sure no malicious characters are passed to your page. I recommend only allowing a-z, A-Z, 0-9 characters.
- Put together the file name (worddocument + . + doc = worddocument.doc).
- Check for existance of the file in the directory.
- If file exists, redirect to the file to open it.
That should do it for you. Let me know if you need more detail.
Pete