binding gridview with detailsview.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vineetbindal
    New Member
    • Jan 2009
    • 57

    binding gridview with detailsview.

    Hi all,

    I have a datagrid and detailsview. when a user selects a row in datagrid onSelectedIndex changed is fired and Detailsview comes into picture. I want to display the data of the selected row in detailsview.

    can some1 please tell me how to do that.

    Regards,

    vineet
  • sangam56
    New Member
    • Nov 2007
    • 68

    #2
    Master detail data display using gridview and detailsview

    This can be accomplished using two different datasources each for gridview and detailsview. On click of a row of gridview we can pass the ID of the row data to the detailsview's select method. An example of asp.net gridview and detailsview master detail implementation has been well explained here: Master detail data display using asp.net gridview and detailsview
    Last edited by sangam56; Jan 30 '09, 05:49 AM. Reason: the help link had to be edited

    Comment

    Working...