[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8717
  • Last Modified:

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
0
viola123
Asked:
viola123
  • 3
  • 2
  • 2
3 Solutions
 
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
FMabeyCommented:
viola123,

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

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now