Hi Alan,
there is a difference between the grid.BackColor and the Column.BackColor property.
As long as there are no records to display, the grid will be shown completely with its BackColor.
Or there are not enough records to fill the grid completely you will always see the lower grid with its BackColor and the displayed recored with their columns BackColor definition.
>Hi Folks,
>
>I sub-classed a grid that I put on a form class that I also sub-classed. I then added a form to a project based on my form glass containing the sub-classed grid . In the project form, I set some custom back colors for the grid, the grid columns and the text-boxes on the grid.
>
>When I run the form, the background color is unexpectedly the default white. Using the debugger, I can see that when I use the parameterized view (with the NODATA clause) in the forms LOAD method, all of the various grid colors look the way I want them to at this point. (This view is the recordsource for the grid.) However, as soon as I REQUERY() the view in the project form's INIT() method, all of the columns in the grid (or perhaps more correctly what I'm guessing is the textbox backcolor) appear with the white background rather than the custom colors I've set using the backcolor property.
>
>If I look to the right or below all of the cells where data is being displayed, I see the 'correct' colors. In other words if I scroll to the right in the grid past the last column displaying data, I see the custom backcolors that I set and the same is true if I scroll down past the last row of data in the grid.
>
>It may (or may not) just be a coincidence, but when I've implemented similar grids in the past without sub-classing, I got the behavior that I expected for the backcolor rather than bumping into this unexpected behavior.
>
>Anybody know what I'm doing wrong?
>
>Thanks,
>Alan
Best Regards
-Tom
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011