Solved

How to change row and border color of dataGridView?

Posted on 2007-11-14
7
7,879 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WPF - Tooltips for ComboBox items 5 28
Excel file not created as expected 7 46
Change Format on Data when exporting to Excel 4 22
Help with C#, MVC, razor. 6 18
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

932 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now