Losing sortability when changing header text

Discussion in 'ASP .Net Datagrid Control' started by Jacques Leclerc, Aug 18, 2005.

  1. I've got a datagrid on a webform. The sortable attribute is set within the
    <asp:DataGrid> 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
     
    Jacques Leclerc, Aug 18, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ken McCrory

    Text box losing most recent Text value

    Ken McCrory, Mar 9, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    465
    Patrick Olurotimi Ige
    Mar 10, 2005
  2. Luis Esteban Valencia
    Replies:
    0
    Views:
    553
    Luis Esteban Valencia
    Mar 23, 2005
  3. PJ6
    Replies:
    1
    Views:
    585
  4. mlt
    Replies:
    2
    Views:
    907
    Jean-Marc Bourguet
    Jan 31, 2009
  5. Jason C
    Replies:
    4
    Views:
    706
    Morty Abzug
    Jun 26, 2012
Loading...

Share This Page