By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

Datagrid SelectionBackcolor??

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

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

Ken
--------------------
"Meir Rotfleisch" <me**@mrrcomputers.cc> wrote in message
news:e5**************@tk2msftngp13.phx.gbl...
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

Nov 20 '05 #2

P: n/a
* "Meir Rotfleisch" <me**@mrrcomputers.cc> scripsit:
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?


You will find a sample for changing the colors here:

<http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp>

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Improve your quoting style:
<http://learn.to/quote>
<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.