How to change row and border color of dataGridView?

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?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
viola123Author Commented:
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.

That first link will show you how to change the grid border color for the grid.

What do you mean by the selector color?
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

viola123Author Commented:
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.


The selector is known as the RowHeader, so you need to alter the RowHeaderDefaultCellStyle(Backcolor)
I don't think the border color is configurable.
viola123Author Commented:
thanks a lot
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.