Can anyone explain to me how to use the templateField in a gridview from Csharp?
I created a sharepoint webpart that lists selected documents from a central shared library. I use a gridview to display the results. One of the columns is an imageview which displays the type-icon for each particular file. I want to link that icon to the file.
In searching the web, I find many solutions which basically say - convert the imageview to a template view. The problem is that in developing the webpart, I don't have an asp page - the control is all created in csharp.
I find all the documentation on templatefields is not very helpful so a simple CSharp example would go a long way!