Datagrid SelectionBackcolor??

  • Thread starter Thread starter Meir Rotfleisch
  • Start date Start date
M

Meir Rotfleisch

Hi

I am trying to use the SelectionBackColor method of the datagrid however it
doesn't work. Is there a method of rendering that needs to be invoked?

The following is the code snippet

Private Sub DataGrid1_CurrentCellChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DataGrid1.CurrentCellChanged

DataGrid1.Select(DataGrid1.CurrentRowIndex)

DataGrid1.SelectionBackColor = Drawing.Color.Aquamarine

End Sub


Regards

Meir
 
Hi,

If you added a tablestyle to the grid change the tablestyles
selectionbackground color instead of the grids.

Ken
 
Back
Top