title: gridview highlighting current row
body: <p>Is there a built-in method of highlighting the currently selected row in a gridview?  </p>
  
  <p>Each row in my gridview has a button (via a buttonField).  When the user presses this button, the background color changes...I do it like this:</p>
  
  <pre><code>Protected Sub gvTransferOwner_RowCommand(sender As Object, e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles gvTransferOwner.RowCommand
      If e.CommandName = "Select" Then
          Dim index As Integer = Convert.ToInt32(e.CommandArgument)
          Dim selectedRow As GridViewRow = gvTransferOwner.Rows(index)
          selectedRow.Style.Add("background-color", "#ffcccc")
      End If
  End Sub
  </code></pre>
  
  <p>This highlights the row, but once the user presses the button in another row, it still retains that color in all previously-pressed rows. </p>
  
  <p>Is there a way so that only one row at a time(the currently selected row) is highlighted?</p>
  
  <p>Thanks</p>