sorting DataGrid

C

cmrchs

hi,

Does setting EnableViewState=true of a dataGrid sent the entire contents of the grid across the wire ?

If so I want to set it to false. But then does my sorting-functionality not work anymore ??

How come ?

Thanks

Chris

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
R

Raterus

Does setting EnableViewState=true of a dataGrid sent the entire contents of the grid across the wire ?
Yes, but just the viewable contents, this can be disabled if you don't need this to happen.
If so I want to set it to false. But then does my sorting-functionality not work anymore ??
The DataGrid doesn't actually sort the data for you, it just provides an interface for you to trigger when the user wants to sort. It's up to you to actually sort the data, and then rebind it to the DataGrid.

--Michael
 

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

Similar Threads


Top