Solved

How to set DataGrid window color

Posted on 2002-07-04
1
289 Views
Last Modified: 2006-11-17
Does anyone know how to set the window background color of a datagrid control?  This is the color of the area between the control border and the grid of cells.  DataGrid1.BackColor sets the background color of the cells and not of this area.  Please provide code if you can.

I suspect

 SendMessage(DataGrid1.hWnd, theMessageID, 0, theCOLOREFColor)

along with OleTranslateColor() to convert the VB color to RGB is the way to do it but I don't know theMessageID to change the window color.

Actually I would like to set the background color to that of the content area of an MDI child window.
0
Comment
Question by:ASP_Ray
1 Comment
 
LVL 4

Accepted Solution

by:
TomLaw1999 earned 75 total points
ID: 7132576
I believe that the correct answer is that you can't. The datagrid supplied with visual basic is really a stripped down version of a commercially available grid and many of the functions are not available.

There are several commercial options available i.e Truegrid etc. and I am sure that one of these would serve your purpose.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

765 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