Scott
I think there is a misunderstanding of how ASP.NET Web Forms works. So, first a little theory.
ASP.NET Web Forms pages have design and code files. The project file has HTML markup and “controls”, which are link tags for custom or custom controls. Each element that has an attribute runat = "server"is a server (this means that it is accessible from the code by its identifier).
When the page opens in a browser, ASP.NET accepts the design file and processes these control links and finally generates pure HTML.
ViewState - HTML, , runat = "server", EnableViewState, True.
, DataGrid EnableViewState = False. , , , ViewState. EnableViewState = True ViewState, - .
, DataGrid ViewState, ViewState, .
DataGrid PageLoad , , .
ViewState , ViewState, ViewState. ( , !), ViewState, ViewState.
, , . , . , - .