Solved

How to change row and border color of dataGridView?

Posted on 2007-11-14
7
8,094 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
  • 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
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled

829 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