View Single Post
Old 02-27-2006, 05:52 AM   #1 (permalink)
rikb53
Registered User
 
Join Date: Jan 2006
Posts: 29
rikb53 is on a distinguished road
Sort Expression,Header is now a Link

hey guys, ive got a data grid using the onSortCommand methods.
everything is working fine - i even was able to make this thing sort - Asc and Desc, by using a dataview and the Sort Property of that.
but my question is. when you use a Sort Function like this, the Header is then changed to a Link Style with the UnderLine, and of course it turns purple after its visited.
i know how to make that go away in JavaScript if it was a hyperlink with an anchor tag, but how can i do it in the datagrid itself, i've looked at all of the header properties and just cant find a thing.
i'm probably missing something really simple.
has anyone ever encountered this?
thanks
rik


<ASPatagrid id="DG1" runat="server" AutoGenerateColumns="False"
AllowSorting="true" onSortCommand="SortEventHandler">
...
<Columns>
<asp:BoundColumn DataField="First_Name" SortExpression="First_Name"
HeaderText="First Name" />
<asp:BoundColumn DataField="Last_Name" SortExpression="Last_Name"
HeaderText="Last_Name" />

works great but has the header now with an underline and turns purple after the first hit
rikb53 is offline   Reply With Quote