Here Mudassar Ahmed Khan has explained with an example, how to store (save) Temporary data in GridView in ASP.Net using C# and VB.Net.
When the Add Button is clicked, the data from the TextBoxes will be inserted into a DataTable which will be stored (saved) in ViewState and later used to populate the GridView in ASP.Net using C# and VB.Net.