Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: DataGrid Header Sort Hyperlinks

Thread Tools

Re: DataGrid Header Sort Hyperlinks

Posts: n/a

My hangup in using templates was how to get the postback
to work when the user clicks on the hyperlink header. I
finally realized that I can use a template with the header
being a LinkButton. It works great and I can get any
look and feel I desire.


>-----Original Message-----
>What does your datagrid code look like? Are you using

templates? bound
>For example, you can use:
><asp:templateColumn headerStyle-CssClass="myCSSClass">
>if you want to apply CSS to the actual <td> cell.

Otherwise, you can create
>a <p> or <div> or <span> directly in your <itemTemplate>

and apply a
>CssClass to that.
>"Jay" <(E-Mail Removed)> wrote in message
>news:05e301c36ea0$b7c7e760$(E-Mail Removed)...
>: How can I change how the sort hyperlinks in the DataGrid
>: header look. I have tried to assign the cssclass, etc.
>: Nothing seems to work.
>: Jay

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Header files with "header.h" or <header.h> ?? mlt C++ 2 01-31-2009 02:54 PM
Sort Hyperlinks Not Showing Up (Grid View 2.0) ASP .Net 1 07-03-2006 09:23 PM
Sort Hyperlinks Not Showing Up (ASP.NET 2.0) =?Utf-8?B?RG9u?= ASP .Net 1 10-13-2005 03:12 PM
Ado sort error-Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB. Navin ASP General 1 09-09-2003 07:16 AM
Sort by header in dynamic datagrid Sudhir ASP .Net 1 08-26-2003 06:15 PM