Re: Allowsorting not worknig
Have you defined what data field each column header should sort by?
Re: Allowsorting not worknig
as above and
Also you need to use a dataset not a datareader (and the xmldatasource doesn't support sorting at all)
Re: Allowsorting not worknig
My gridview is bound to a datatable.
Timeshifter, if you're referring to setting the sort expression property to the datafield, yes I'm doing this. It does make the headings links, but now it errors when I click the link to sort it
Thanks,
Strick
Re: Allowsorting not working
By the way, the error I get is:
The GridView 'grdComments' fired event Sorting which wasn't handled
Thanks,
Strick
Re: Allowsorting not working
Re: Allowsorting not working
Hey Stricknyn,
I just had this problem and instead of manually defining the fields, I set AutoGenerateFields=true, then my columns became sortable...
Jim P.