Updating row in gridview
When the Update Button is clicked, the reference of the Grid View row is determined and the updated values are fetched from the respective Text Boxes of Name and Country columns while the Customer Id is determined from the Customer Id column.
When the Cancel Button is clicked, the reference of the Grid View row is determined and the Label controls are made visible while the Text Box controls are made hidden in the Name and Country columns of the Grid View control.
This extension depends on the kartik-v/yii2-krajee-base extension which in turn depends on the yiisoft/yii2-bootstrap extension.
Within the loop we will check whether the Check Box for that row is checked, if the Check Box is checked then the Value from the Grid View Row Cell and Cell controls like Label, Text Box, Drop Down List, etc. There’s a Button that will fetch the selected rows of Grid View and will display the same in another Grid View below it.
In this article we will use a Modal Popup Extender control of Ajax to display the Grid View records.
Normally all of you know how to use the Modal Popup Extender of ASP.
We have selected four columns from Employee Details table.
In this article we will learn how to edit a Grid View row using Modal Popup Extender.