sort gridview

G

Guest

I have a grid on my webform with 10 columns, I need to allow the user to sort
the columns when they click on the header. My grid is populated byt a dataset
and not any typed datasets, sqlobjectdatasource, etc. I've looked in some of
the asp.net 2005 books i have on this and the examples dont' work. can
someone show me a working code snippet of sorting a gridview?
 
G

Guest

thats one of the examples I tried, its the last one I tried before posting
and I can't get it to work. nothing happens.

AllowSorting = true
I have my fields as sortExpressions and nothing. It will not sort
 
W

Winista

Did you donwload the sample and tried it as such? Did that work?

Are you handling the sorting events in your code?
 
G

Guest

yeah i downloaded and no it didn't work

Winista said:
Did you donwload the sample and tried it as such? Did that work?

Are you handling the sorting events in your code?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top