Grideview RRS feed

  • Question

  • User674443648 posted

    Hi All

    I have one problue i have one grideview in gridview itemtemplate one link button.

    I have click link button to Beside to the grideview Open New grideview and display containts to foraign key through another grideview 



    one grideview Country Link.

    Another Grideview Contury related state Display


    Friday, January 27, 2012 11:40 PM


  • User16212438 posted

    You could set DataKeyNames on the GridView to the name of the PK field.

    As CommandName for the LinkButton use Select. As CommandArgument use the RowIndex.

    Then on the DataSource Control for the second GridView, use a ControlParameter to get the SelectedValue from the first GridView.


    That should do it. No code involved.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 30, 2012 6:28 AM

All replies