Gridview rowupdating findcontrol c
In the below gridview I used templatefields to display data and perform gridview operations. Templatefield: Actually we use this templatefield to display any control such as check box, label, drop down etc in the gridview control to provide additional functionality and this templatefield supports many templates, here we are using Itemtemplate, Edititem Template and Footer Template.2.Item Template : This template used to display the content every row rendered by the gridview control.In general, gridview control is used to populate the data in tabular format from different datasources and basically it derived from webcontrol class.
Now we have created the application and open the web.config file to add connection string as shown below.
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.
Net Grid View control with simple Data Set or Data Table, and also explains the methods like Insert, Edit, Update and Delete function in the Grid View control.
You can see most of the articles and tutorials in many websites teach you the way to bind a Grid View control to the database with some Data Source controls such as SQLData Source, Object Data Source, Access Data Source and even XMLDatasource.