www thedatinglife com - Rowupdating gridview findcontrol

To String()); Text Box txt Withdraw Amount = (Text Box)Gridview1. Find Control("txt Withdraw Amount"); Access Gridview New Example void my Function() Grid View1_Row Updating Grid View Row row = (Grid View Row)Grid View1.

rowupdating gridview findcontrol-16

In this tutorial I will show you how you can create an editable Grid View control for administrators to modify database records directly into the Grid View control.

Editing the Grid View control can be an incredibly easy feature to add for certain database tables, especially those who have no foreign key associated and can easily be edited through the use of a standard Text Box web control as shown in the figure below: 1.

By using the Grid View Row object we can find the reference of any control in the row in which user is editing the data.

In this tutorial we are searching for our Text Box controls txt Product Name and txt Unit Price.

NET page that will handle different Grid View events to provide complete editing functionality.