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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing the color column in Flexgrid

Status
Not open for further replies.

Timtoi

Programmer
Jul 27, 2005
5
CA
I have a Flexgrid and inside there is 3 columns. How to make the first column has different color with other one
 
the one you mention it is not the thing i am looking. Because it changes every cols. I need only one column have a different color with another
 
You could loop through the column and use CellBackcolor:

Dim lngRow As Long
For lngRow = 0 To fg1.Rows - 1
fg1.Col = 0
fg1.Row = lngRow
fg1.CellBackColor = vbGreen
Next


________________________________________________________________
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?'
Drive a Steam Roller
 
A search should bring several results including thread222-1101939 from a couple of days ago.

Just remember to change the rows leave the column constant. Most examples are to colour a row, just make the logical switch.

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top