Adding Link Column to ASP.NET GridView

前端 未结 5 2113
一向
一向 2020-12-30 01:00

I want to output a list of news headlines that are clickable. So far I can get it to print out a list of headlines because I dragged and dropped the NewsHeadline table in d

5条回答
  •  再見小時候
    2020-12-30 01:48

    The HyperLinkField will work great as others have pointed out. But, in case you want the entire row clickable, you can use a custom server control that implements a GridView suggested in the SO post "Making an entire row clickable in a gridview".

    Check out the question I posted on how to implement a C# custom server control on implementing it.

    Just another option.

提交回复
热议问题