Here Mudassar Ahmed Khan has explained with an example, how to store (save) GridView data in ViewState in ASP.Net using C# and VB.Net.
When a new row is added to GridView, the row data will be added to a DataTable and the DataTable will be saved in ViewState in ASP.Net.
↧