Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid column type as link for Windows Applications...

Status
Not open for further replies.

VisualGuy

Programmer
Joined
May 27, 2003
Messages
162
Location
US
I want to build a windows application that will have a datagrid where one of the columns lists paths that serve as links to specific documents on our network. I would like it to work as a link.

So, the text would be underlined and when you float over it, you can click it and have it launch your (word doc) for example. Does anyone have an example of this?
 
I sure there's an easier way to do it, but one way is to format the cell so that the text will display the way you want. Then set a click event on the cell so that it will take the contents of a cell and send it to a shell command execute wrapper. This is theroetical cuz I haven't actually done it. However, this should work as long as the entire path is in the cell and the item's file extension has an associated program with it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top