Babar
Babar

Reputation: 129

How to Update Gridview Row without saving data to database

Hi I have a GridView I am using built in Edit method that comes along with GridView in ASP.NET Web Forms. I want to Edit/Update the row in such way that it should only be updated dynamically in row and should not update records in database. The updated content should be hard coded to row temporarily. Can Any one help me do this task.

Thanks in advance.

Upvotes: 0

Views: 492

Answers (2)

Bruno Quintella
Bruno Quintella

Reputation: 371

You can use a DataTable. Populate your DataTable with any data you want and bind it to your GridView.

Upvotes: 1

SQL_Not_Freak_Yet
SQL_Not_Freak_Yet

Reputation: 9

Sorry I only can give an answer no comment but my suggestion would be: Keep your data (GridView/Table) in a Session Variable and display this data until you wanna update.

Upvotes: 0

Related Questions