Datagrid SelectionBackcolor??

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
 
K

Ken Tucker [MVP]

Hi,

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

Ken
 
H

Herfried K. Wagner [MVP]

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top