Since I had experience with the HyperLinkField before, I thought I would add a HyperLinkField to my GridView and set the DataNavigateUrlFields to the needed fields and the DataNavigateUrlFormatString to use the fields properly. I was hoping to accomplish it by using the following code, which in turn I found out this solution does not work:
HeaderText=”View” Text=”Details” />
<ItemStyle CssClass=”viewLines” />
Now, using this technique I was able to use jQuery to insert a row below the clicked item and add additional information.
$(‘#LineItems’).remove(); // remove previous entries anywhere in the grid
// Now I got up two parents, to get to the TR tag, and I append after it another row with id’s so I can identifier them easily with jQuery.
// I load the information through an ajax call