Findcontrol in gridview rowupdating event

Rated 3.93/5 based on 602 customer reviews

In order to develop a test web form create a new web site in VS. Set various properties of the Bound Fields as shown in the following table: Here, we call Bind Grid() method if the web form is being served as a result of first request.

The Bind Grid() method is our own function that we will create later on.

Execute the below SP_Customer stored procedure in sql server database which is used to handle insert, update, select and delete a record into customer table.

findcontrol in gridview rowupdating event-16

The Data View supplies all the records from the Employees table.

, the data can be rendered in separate columns, in the order it occurs in the data source.

By default, the field names appear in the grid's column headers, and values are rendered in text labels.

In this article, we will explore how to add, update, delete and select a record from sql server database using gridview control in a simple way.

I’m using visual studio 2008 and sql server 2008 for this sample.

Leave a Reply