How can I make the header of datagrid as hyperlink

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • simonyong
    New Member
    • Jul 2008
    • 28

    How can I make the header of datagrid as hyperlink

    hello,

    Right now, i had disable the "create column automatically at run time", and create column myself to display specific datafield.
    and now i want to sort my data once the user click on the column header.
    the 1st step i think is to make the header of column as hyperlink so that i can get the name of the column and sort by it.
    Thanks for teaching.

    **im using .Net framework 1.0
  • dmj07
    New Member
    • Aug 2008
    • 55

    #2
    If you look in the properties of the grid view control there should be an "EnableSortingA ndPagingCallbac ks" option that you can set to true which will make the headers turn into hyperlinks to sort that column. You must also set the "AllowSorti ng" property to true. Hope this helps.

    Comment

    • simonyong
      New Member
      • Jul 2008
      • 28

      #3
      Originally posted by dmj07
      If you look in the properties of the grid view control there should be an "EnableSortingA ndPagingCallbac ks" option that you can set to true which will make the headers turn into hyperlinks to sort that column. You must also set the "AllowSorti ng" property to true. Hope this helps.

      thx lots
      I found the way to solve it already as u said
      thx for teaching

      Comment

      Working...