Question : DataGridView - changing background of row?

I'm using vb.net and datagridview.
When I click a cell how can I have the background color of that entire row change, and when clicking in another row then the first one would go back to normal and the new one will have its background color change?

Answer : DataGridView - changing background of row?

Try this (It works for me):
At design time, set the SelectionMode to FullRowSelect. Then add the following code:

   Private Sub DataGridView1_CellEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEnter
       DataGridView1.BeginEdit(True)
   End Sub


Random Solutions  
 
programming4us programming4us