Posted on: 4/7/2014 4:15:52 PM | Views : 576

I'm having issues getting the second button in the Item template to show the selected row in the grid view.  Originally, just the Command Field button was used, but i added the button in the template field so I can reference the ID of it in some java script.  The first button in the Command Field will be removed once the new one in the template field works correctly.  
Right now the correct record can only be displayed using both of the butttons.  The row has to be selected with the button in the command field and then displayed with the new button in the template field.  I'm not sure why the button in the template field doesn't work with out the one in the bound field selecting the row first though.
I'm thinking the DataKey value will need to be passed to the details view and some additional code will need to be added, but I don't know exactly what needs to be done.  The selected key doesn't appear to be passed to the details view ...

Go to the complete details ...