Changing Column Color in DBGrid, How? 
Author Message
 Changing Column Color in DBGrid, How?

            Can anyone please help me by telling me how to change the
backcolor or forecolor of a single coumn in a DBGrid?

Nadav



Tue, 01 May 2001 03:00:00 GMT  
 Changing Column Color in DBGrid, How?
I recall having to do this cell by cell in a loop.
Quote:

>            Can anyone please help me by telling me how to change the
>backcolor or forecolor of a single coumn in a DBGrid?

>Nadav



Wed, 02 May 2001 03:00:00 GMT  
 Changing Column Color in DBGrid, How?
here's a fairly simple way:

x = 1
grdGrid.col = 1    ** the column number you want coloured
do
    grdGrid.row = x
    grdGrid.backcolor = vbBlue
    x = x + 1
loop until x > 50  **or however many rows you have**

Quote:

>I recall having to do this cell by cell in a loop.


>>            Can anyone please help me by telling me how to change the
>>backcolor or forecolor of a single coumn in a DBGrid?

>>Nadav



Wed, 02 May 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Changing font or color of a single column in a Dbgrid

2. DBGrid - calculated columns; column colors

3. Setting color of one column in DBGrid

4. Change the column size of DBgrid

5. Change Column Captions in DBGrid

6. ???Change column captions on dbgrid at runtime???

7. How can I change the label from a DBGrid-column with VB 4.0

8. changing dbgrid columns at runtime

9. Changing column titles - DBGRID?

10. Change the column size of DBgrid

11. How change columns order in DBgrid in Vb 4.0

12. Can you change Column Width of Bound DbGrid?

 

 
Powered by phpBB® Forum Software