Hi Louisa
I'm no expert, but assuming your have AutoGenerateColumns="false" within the datagrid, you would then set up a column, with something like the following:
<columns>
<asp:TemplateColumn HeaderText="Contractor">
<itemtemplate>
<a href="[formpage].aspx?id=('<%# DataBinder.Eval(Container.DataItem, "[contractorID_Field]") %>');"><%# DataBinder.Eval(Container.DataItem, "[contractorName_Field]") %></a>
</itemtemplate>
</asp:TemplateColumn>
Without knowing what your database field names are, it's hard to map them above, and also, without knowing how you want to link them, ie, is it one form page which is populated based on the contractor (in which case you could send the contractorID to that form page and use a Request.QueryString on the form page to get it, or have you got multiple pages, ie, one for each contractor?
|