[Webinar] Streamline your web hosting managementRegister Today

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

datagridview header color

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
jackjohnson44
Asked:
jackjohnson44
  • 2
1 Solution
 
VBRocksCommented:
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
 
jackjohnson44Author Commented:
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
 
jackjohnson44Author Commented:
Figured it out

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

Thanks
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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