Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid Sorting Problem

Status
Not open for further replies.

barrylowe

Programmer
Nov 6, 2001
188
GB
For some reason, when I set Allow Sorting to True in my datagrid the headers do not change to Hyperlinks.

Here is the source for the datagrid:

<asp:datagrid id="dgrdCurrentVacancies" runat="server" AllowSorting="True" AutoGenerateColumns="False" BorderColor="#8AB0D5" BorderWidth="2px">
<ItemStyle Font-Size="Smaller"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="#003082" BackColor="#BCD4C7"></HeaderStyle>
<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="JobID" DataNavigateUrlFormatString="VacancyDetails.aspx?jobid={0}" DataTextField="JobShopRef" HeaderText="Ref"></asp:HyperLinkColumn>
<asp:HyperLinkColumn DataNavigateUrlField="JobID" DataNavigateUrlFormatString="VacancyDetails.aspx?jobid={0}" DataTextField="JSTitle" HeaderText="Title"></asp:HyperLinkColumn>
<asp:BoundColumn DataField="JSLocation" HeaderText="Location"></asp:BoundColumn>
<asp:BoundColumn DataField="vacGrade" HeaderText="Grade"></asp:BoundColumn>
<asp:BoundColumn DataField="JSSalary" HeaderText="Salary"></asp:BoundColumn>
<asp:BoundColumn DataField="InputDate" HeaderText="Posted"></asp:BoundColumn>
<asp:BoundColumn DataField="JSCloseDate" HeaderText="Closing Date"></asp:BoundColumn>
</Columns>
<PagerStyle Mode="NumericPages"></PagerStyle>
</asp:datagrid>

Can ayone help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top