Updating gridview row

14-Jul-2017 16:35

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.On the click of the Button the following event handler is executed.A loop is executed over the Grid View Data Rows and Check Box is referenced.If the Check Box is checked then the name and country are fetched from the Bound Field and the Template Field Label respectively.

The default Command Field arrangement is such that the Edit, Update and Cancel buttons are displayed in a column as shown below: The problem with this design is that the Grid View edit column always occupies some screen real estate.Keep in mind that the entire process is kicked off by the user clicking a Link Button in one of the sortable column's headers, and completes by displaying the data in the requested sorted order.