Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 11, 2012 02:32 PM by superguppie
May 07, 2012 03:30 AM|LINK
I am not able to click on any part of GridView to sort the coloumn. Kindly help me. I can only able to click on text portion of griview cloumn header, but I need functionality which will allow me to sort by clicking anywhere and not only on text portion.
May 07, 2012 04:29 AM|LINK
in headerTemplate of gridview add a button and on the click of the button sort the relevant column as you want.
you may hit the database to sort that column.
May 11, 2012 02:32 PM|LINK
You will need to make each Cell in the Column an anchor (HyperLink) like in the Header. The Header anchor does a PostBack with a Command to do the Sort. If you want to Sort from another place, the same PostBack is needed.
To make it so you can click the entire Cell, instead of just the Text, style it with display:block.