Hello,
My Gridview is showing records from database through SQL query and Data Adapter. Columns are generating from the record. I have added a imagebutton for user to click . When user click on the image button, it should take the first coulum (PatientID) from
the row and open another webform to show the patient details.
How can I do this? Do I need to use Command button instead of Imagebutton in order to read the items in the Gridview? Please help me.
Below is my code.
<td class="auto-style2">
<asp:GridView runat="server" Width="675px" ID="GridPatients" OnSelectedIndexChanged="GridPatients_SelectedIndexChanged" HeaderStyle-BackColor="#333333" BorderStyle="Outset"
BorderWidth="2px" Font-Size="Small" HeaderStyle-ForeColor="White" ForeColor=& ...
Go to the complete details ...