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

x
?
Solved

C# WinForms: Need to override the default color for a DataGridView

Posted on 2012-08-14
4
Medium Priority
?
932 Views
Last Modified: 2012-08-15
Using C# WinForms, I need to override the default blue color for a DataGridView.  The default background of a datagrid that is “highlighted” is set to a windows scheme default color.

I need to make this yellow.

Can I do this?

Thank!
0
Comment
Question by:newbieweb
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:ktromp1
ID: 38293772
0
 

Author Comment

by:newbieweb
ID: 38293795
No, the first is for a DataGrid, not a DataGridView. The second is WPF.
0
 
LVL 1

Accepted Solution

by:
ktromp1 earned 2000 total points
ID: 38293986
My error. I totally misread your question. Is this what you are looking for?

http://stackoverflow.com/questions/3178421/how-do-i-change-the-datagridview-selected-row-background-color
0
 

Author Closing Comment

by:newbieweb
ID: 38295982
Perfect!
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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 is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

873 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