Gridview rowediting vs rowupdating

Rated 4.77/5 based on 851 customer reviews

Each column represents a field, while each row represents a record.

The Grid View control supports the following features:use Row Editing, Row Updating, Row Deleting, Row Command, Row Data Bound, Row Canceling Edit, and Pagination in a Data Grid.

gridview rowediting vs rowupdating-69

gridview rowediting vs rowupdating-54

gridview rowediting vs rowupdating-27

gridview rowediting vs rowupdating-52

In addition to that, we’re resetting the Edit Index and Selected Index when the page is changed to avoid cases, for example, where you change pages and are suddenly editing a different item.

For this situation, many developers use invisible columns (Hidden columns) in the gridview to identify that row.

We can achieve the same functionality using Datakeys.

Summary : Usually developers do not use an editable Grid View for many reasons. First fill then create a bool function and go to assemble row editing & updating event.

Developers prefer manual coding but an editable Grid View is a good way to update a database. Step 1Put a Grid View in your aspx page then write code for the page load to fill the Grid View.

Leave a Reply