Click here to Skip to main content
14,870,735 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 2 tables in SQL
using stored procedure
i retrieved those two tables from database and stored those tables in single grid view

Is it possible to edit the above gridview which i retrived through storedprocedure

if editing could be done

please explain how to do.....

Editing the contents of a grid view is really trivial and widely documented on the web. I think what you mean is, how do you store the result ? You need to write your own code that knows which aspects of the grid belong to which table, make sure primary keys are included in the data you have so you know what rows to update, etc.
To make the gridview editable, you can use Gridview's OnRowediting event.
that can make your task really easy and understandable,

to understand this event Kindly have a look at the following link.

GridView.RowEditing Event

and to understand how you can implement this. Do have a look at the following article.

Editable GridView in ASP.NET 2.0

Hope it will help. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900