DataGrid
Control passes
ViewState
The DataGrid to save the status of the control will store the data in all data sources into ViewState. DataGrid is a list control that stores data in ViewState, including data in all cells (cell) in the list, more hateful, instant we open the paging function, it also puts all the data not displayed The data in the source is placed in ViewState. If the data volume is not controlled in the database, the DataGrid control is actually stored in the ViewState in ViewState in the ViewState. Direct consequences are ASP.NET generated source HTML code to send to the client huge. If you don't use the advanced features of DataGrid, you are usually joined by the enableviewState = "false" property. It is also the use of your own paging control, not using the paging function provided by DataGrid, which will cancel the DataGrid's ViewState, which greatly reduces the final generation HTML code quantity.