How to change row and border color of dataGridView?

All,
i want to change the border color and row color to something like "224,255,255" of dataGridView.
how to do that by Code OR by designer?

thanks
viola
LVL 6
viola123Asked:
Who is Participating?
 
viola123Author Commented:
hi,
i think i need to clarify my question:
i want to
1. change the border color of the whole dataGridView not the row border color
2. change the selecter 's color not the row color

i am sorry for the confusing.

thanks
0
 
RedKelvinCommented:
That first link will show you how to change the grid border color for the grid.

What do you mean by the selector color?
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
viola123Author Commented:
RedKelvin:
i tried the link, it changed the color of the grid lines separating the cells of dataGridView not the border of the whole dataGridView.
the selector is the cell before each row, once you select a row, an ARROW sign will be showed on the cell.

thanks
0
 
FMabeyConnect With a Mentor Commented:
viola123,

The selector is known as the RowHeader, so you need to alter the RowHeaderDefaultCellStyle(Backcolor)
0
 
FMabeyConnect With a Mentor Commented:
I don't think the border color is configurable.
0
 
viola123Author Commented:
thanks a lot
viola
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.