Updating sql using gridview control


13-Dec-2015 14:17

NET page that will handle different Grid View events to provide complete editing functionality. Data Bind();} For brevity I am not storing connection string in the web.config and also not using any Data Access Component.

updating sql using gridview control-27

peterson pipe dating guide

If user clicks the Cancel button while Grid View is in editing mode, you need to Cancel the Editing process and also need to reset the Edit Index property to -1 in the Row Canceling Edit event of the Grid View control as shown below: The last step is to handle the Row Updating event to actually update the back end database.

To do this we first need to obtain the reference of the current row by using its index no as shown in the first line below.

These properties will automatically render Edit, Update and Cancel buttons inside Grid View column.

I am using Template Field’s Item Template and Edit Item Template for providing read only and editing interface of the same column in the Grid View.

By Default, Grid View control displays Item Template which directly shows the Product Name and Unit Price columns but when user clicks Edit button Grid View automatically switches to Edit Item Template and display the control available inside Edit Item Template for user editing. Now I will show you the C# code behind file of the above ASP.



If you want to learn how to make your man cry out in pleasure and beg you for more, then you may be interested in checking out the oral sex techniques in this explicit and in-depth instructional video.… continue reading »


Read more

To get this guarantee, however, you must sign up for the 6-month subscription, and respond to or e-mail at least 5 members a month.… continue reading »


Read more