0

Hi All,

Need a help on ASP.NET gridview.

I need a link gridview in asp.net and when you click on particular link that details has to show in the same page.

I am using Oracle database.

Thanks in advance. Kavitha Kesav

3
Contributors
3
Replies
18
Views
3 Years
Discussion Span
Last Post by kavitha N
0

So if i understand you correctly, you have a gridview control and when you select an item, you want to view the details of that item on the same page.

If so, this is generally accomplished using a gridview and detailsview control. There are quite a bit of tutorials online on how to do this. Just do a search for "populating details view from gridview" or similar.

Its difficult to provide you with more details or an example based on the information you posted...

0

Grab an id from a grid row and then use that to get the detail information. Works best if you can put the id into a link button CommandArgument.

Example below:

<asp:templatefield>
    <itemtemplate>
        <asp:LinkButton ID="imgbtnGetDetails" commandargument='<%# Eval("sID") %>' commandname="DetailRow" cssclass="imgIcon" runat="server" >
            Details
        </asp:LinkButton>
    </itemtemplate>
</asp:templatefield>

Edited by ggamble

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.