change Color(this) is called from on Click method of Check box this is just to show how to set style form Java Script in a row of Grid View.
In this article I will explain how to edit and update multiple rows in ASP. the Rows which are checked will become editable and user can update multiple rows on one single Update button click. If the Check Box is checked then the Label control in the Grid View Cell is hidden and the corresponding Text Box or Drop Down List is made visible.
Code Step by Step: Create a grid view first which will load data from database.
here is the code of Grid View here from the grid view I have called 2 Java Script method to 1.
It will add the Grid View control's HTML source code as given above.
First of all drag the Grid View control from the Data controls menu.
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").In this event, you can safely bind the grid again to access the second page.It is always preferable to cache the data used to bind the data source.When the Delete Button is clicked, the On Row Deleting event handler is executed.Inside the On Row Deleting event handler, the Index of the Grid View Row is determined and and it is used to delete the Row from the Data Table.