sorting DataGrid

  • Thread starter Thread starter cmrchs
  • Start date Start date
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...
 
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
 
Back
Top