Thanks to Mr. SHAKIR SHABBIR first of all, but as I think there is no viewstate in the windows form application ...
I suggest using static collection types ...
you can define a class for your input form and specify a variable for the text field when you click the add button, create a class object, set all its values ββto your text fields, insert a row into the grid and save all row data (class object in a gridview row) in the list
you can also use static datatable ... you need to create columns for each of your text field. adding a row to the datatable .. selecting the data source of your grid ...
If you need more help, I am always here to help you.
source share