Change the back color of a GridView row when you click edit button in ASP.NET
If you have an editable Gridview and you need to change the backcolor of the row you are editing, just write these tow lines of code in the Gridview's RowEditing Event. MyGridView.SelectedIndex = e.NewEditIndex; MyGridView.SelectedRow.BackColor = Drawing.Color.Red;