Solved

datagridview header color

Posted on 2007-04-09
3
485 Views
Last Modified: 2013-12-17
I want an absolutely white datagridview with no lines, or headers.  I can set the header color to white, but it still shows as the control color.  I would like to do this via the properties instead of programmatically.

Win forms vb vs 2550
0
Comment
Question by:jackjohnson44
[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
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
VBRocks earned 500 total points
ID: 18879885
In the properties pane for the DataGridView:
     Set ColumnHeadersVisible to False
     Set BackgroundColor to Window
     Set GridColor to Window

You can also set the following properties:
     Set RowHeadersVisible to False
     Set SelectionMode to FullRowSelect    'If you want the whole row to be selected when clicked on.

Hope that helps.
0
 

Author Comment

by:jackjohnson44
ID: 18884167
thanks, but I want the header visible because I need the header text.  I just want it to be white and not look like a header.
0
 

Author Comment

by:jackjohnson44
ID: 18884407
Figured it out

EnableHeadersVisualStyles was set to true.  Apparently this uses the users computer settings instead of yours.

Thanks
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
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.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

632 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