in

SharePoint University

Clean slate. Nothing but SharePoint.
Go, SharePoint!

templatefield in gridview using csharp

Last post 11-12-2008 12:05 AM by mazhar10. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-22-2008 2:01 PM

    templatefield in gridview using csharp

    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!

    Dino
  • 11-12-2008 12:05 AM In reply to

    Re: templatefield in gridview using csharp

    Hi Dino, I am facing the same problem. Did you find any solution of adding templatefield dynamically using C#? If yes, could you find find that to me at mazhar10@hotmail.com ?

    Thanks in advance,

    Mazhar 

Page 1 of 1 (2 items)

Need SharePoint Training? Attend a SharePoint Bootcamp!
Forum content (c) original posters. Everything else (c) 2008 SharePoint Experts, Inc.