Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid column colors

Status
Not open for further replies.

Tailgun

Technical User
Mar 30, 2002
417
0
0
US
I have a DataGrid with some columns locked and some not. I would like the unlocked columns to have a white background in the rows and the locked columns to have a grey background.

Is this possible? I can't seem to make them different they seem to all have to be the same color :(

Thanks for any and all help.
 
Are you using True Database Grid or the default Visual Basic DataGrid?
 
I am using the default VB6 sp5 DataGrid
 
I don't think it's possible with the standard datagrid, but using a standard MSFlexgrid you can use the CellBackColor and CellForeColor properties.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Thanks I have never used the standard MSFlexgrid but will give that a try.

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top