A Data Representation control such as
GridView
is binded at the server, thus adding controls within it should be done at the server - otherwise if you add/inject an element at the client (
JavaScript
) they will be gone when it postbacks. You may want to use a client-side Grid that allows you to do what you want. The idea is to grab all the records from a service call (assuming you are using
AJAX
to populate your grid) and then search the records from it and then rebuild your client-side
GridView
along with
hyperlink
elements that you want to add.
One example is using bootstrap datatables:
Bootstrap Table With Sorting, Searching and Paging using dataTable.js (Responsive)[^]
You can see the live demo here:
A demo of table with pagination and search options[^]