GridView question
Date: 12/11/07
(Asp Dot Net) Keywords: asp
I'm sure this question has been asked a thousand times so I apologize in advance.
I have a grid with two columns. I'd like one of them to be a link which the user can click on to load more details.
I've seen how I can use a HyperLinkField to do this but then I have to put the item ID in the URL /details.aspx?id={0} etc.
Instead I'd like to use the SelectedIndexChanged Event. I made a version of the grid that will do what I want using a CommandField column.
Unfortunately the CommandField column has "Select" in each row - whereas I would like the item name.
Is there a way to do that using the CommandField column or should I use another approach ?
Source: http://community.livejournal.com/aspdotnet/93930.html
|