Erotic caht in cam - Rowupdating findcontrol c

In the template field I will Place a label or some controls, So that it’s very easy to access those controls in the code behind by using Find Control method. Item Template is the content to display for the items in the Template Field.

rowupdating findcontrol c-24

This is the easy way to handle all the gridview operations in data base side instead of using sql query from front end side.

Also here we used @@ERROR for error handling in the stored procedure and returns the number to front end and confirm that the performed action is successful or not.

Here we using label in this template and displaying the data.3.

Edit Item Template: When we select or edit a specific row, the contents of this templates are displayed in the gridview.

Create the customer table in your own test database using below table script and insert some records initially to load gridview with data.

Once you execute the above table and insert scripts, you will get the below records in the table initially to load data into gridview control.

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.

Here we are not deleting a record permanently but using active flag column, make it inactive the record while doing the delete operation then make it active and get it whenever you want.

And here I’m explaining some basic functions of this gridview control such as insert edit and delete a record.

First, we need to prepare the database table and stored procedure for gridview operations such as insert, update & delete a records, here I’m using sql server 2008 for all database activities, for this sample I have created the customer table and stored procedure for all mentioned gridview operations.

The above piece of code will also do the same as label in Item Template and Textbox in the Edit Item Template.

Tags: , ,