Updating gridview in asp net 2 0

Rated 3.96/5 based on 604 customer reviews

Instead of assuming what the indexes are just find the control using the Grid View Row you already located.

The first control of that cell is not your textbox hence the cast fail.

Alternatively, the Sql Data Source can be used in place of the Object Data Source.There are various techniques that can be used to edit and delete data, one of them being utilizing the Grid View's built-in deletion and editing capabilities.As with paging or sorting data, deleting data that comes directly from a database by means of a Sql Data Source is easy to accomplish, requiring only a few points and clicks of the mouse.The Grid View allows editing on a row-by-row basis.An editable Grid View contains an additional column with an Edit button in each row.

Leave a Reply