One note will be helpful for you, while describing Columns in Grid View if you are using a boundfield then create objects of the control using cells[index] in the rowupdateing event of Grid View, but if you are using controls itself like Label or textboxes etc then use Fincontrol("stringid").Free counters Added on January 19,2012 Follow Me @vmsdurano A bit About Me Disclaimer The opinions expressed herein are my own personal opinions and does not represent the opinions of my employers.
Place Link Button Edit in Item Template and Link Button Update and Cancel in Edit Tamplate of Gridview's column. Fire Grid View's Row Editing event for Link Button Edit. Fire Grid View's Row Updating event for Link Button Update. Fire Grid View's Row Canceling Edit event for Link Button Cancel. Set Command Name propery of Link Buttons according to their respective event. Set Grid View's Data Key Names Property to record ID (ID=Primary/Unique key of student table) 7. 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.Actually gridview control is built with lot of features and this control is commonly used for all applications.And here I’m explaining some basic functions of this gridview control such as insert edit and delete a record.Step 4: Please press Ctrl F5 to show Data In page, the test steps just like Data From Data Add "Person" table with three fields "Person ID","First Name","Last Name", Person ID is the primary key of the table, and you can insert some default values in Person table. Drag and drop a Grid View control, two Link Button controls, two Text Box controls and a Panel control into Data From Data page.