Solved

How to change row and border color of dataGridView?

Posted on 2007-11-14
7
8,328 Views
Last Modified: 2010-05-18
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
0
Comment
Question by:viola123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 22

Accepted Solution

by:
RedKelvin earned 250 total points
ID: 20285255
0
 
LVL 6

Author Comment

by:viola123
ID: 20285775
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
 
LVL 22

Expert Comment

by:RedKelvin
ID: 20285915
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
Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

 
LVL 6

Author Comment

by:viola123
ID: 20286012
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
 
LVL 3

Assisted Solution

by:FMabey
FMabey earned 250 total points
ID: 20298668
viola123,

The selector is known as the RowHeader, so you need to alter the RowHeaderDefaultCellStyle(Backcolor)
0
 
LVL 3

Assisted Solution

by:FMabey
FMabey earned 250 total points
ID: 20298691
I don't think the border color is configurable.
0
 
LVL 6

Author Comment

by:viola123
ID: 20310343
thanks a lot
viola
0

Featured Post

Containers and Docker for Everyone

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question