Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Losing sortability when changing header text

Reply
Thread Tools

Losing sortability when changing header text

 
 
Jacques Leclerc
Guest
Posts: n/a
 
      08-18-2005
I've got a datagrid on a webform. The sortable attribute is set within the
<aspataGrid> tag on the aspx file. An intial value is also set for the
column header text.

In the code behind page in the ItemDataBound event I reset the header text
based on a user selection criteria. The setting of the header text is
accomplished with the following code.
e.Item.Cells(0).Text = "<p>Donation Group</p>"

The column displays the new header text but the sortability for that column
is lost.

Does anyone know the correct syntax for changing the header text without
losing the sortability?

Thanks


 
Reply With Quote
 
 
 
Reply

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
Regex losing <br> (different from the earlier topic about losing $1) Jason C Perl Misc 4 06-26-2012 10:29 PM
Header files with "header.h" or <header.h> ?? mlt C++ 2 01-31-2009 02:54 PM
Losing Drives - Finding Drives - Losing Drives mel@no.spam.com Computer Support 2 09-21-2007 10:16 PM
Text box losing most recent Text value Ken McCrory ASP .Net 5 03-10-2005 05:32 AM
Image in header column (not replacing column header text) hansiman ASP .Net Datagrid Control 3 02-07-2004 12:17 AM



Advertisments