views:

54

answers:

3

How can I make a DISPLAYED DATA(int) of a PARTICULAR COLUMN to be a hyperlink in a GRIDVIEW, so when I click on that DATA it will display details of that chosen row line items.

+1  A: 

I assume that you will give your details at another page, here is a hyperlink column that points to a details page :

<asp:HyperLinkColumn
    HeaderText="Show Details"
    DataNavigateUrlField="YourIntegerColumn"
    DataNavigateUrlFormatString="detailspage.aspx?id={0}" />
Canavar
A: 

Though I don't think it is what you want, you might want to display details inside of hover text. This should work for you.

<asp:TemplateField HeaderText="Id">
    <ItemTemplate><asp:Label ID="LabelId" runat="server" Text='<%# Eval("Id") %>' ToolTip='<%# Eval("Details") %>' /></ItemTemplate>
</asp:TemplateField>
Ben Griswold
+1  A: 

This video does something similiar to that. The details are not inline, but the concept is kind of what you're looking for. There is a grid view, and when clicking on an item, the details view below is populated with the row details. This may give you some ideas. Hope this helps.

http://www.asp.net/learn/3.5-videos/video-363.aspx

Hcabnettek