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

change backcolor for one cell in grid 1

Status
Not open for further replies.

barryna

Programmer
Feb 15, 2002
111
US
Is there a control where you can change the backcolor for each individual cell in the grid. For instance, I would like to color code a specific column based on different appointments made to show that a specific appointment runs from 1:00 to 4:00, where is row is an hour in a day. Then the color for rows 1:00, 2:00, 3:00, and 4:00 would be a different color, like blue. So visually, a person can see their appointment blocks. I haven't found a control yet, is there one out there that allows me to do that?

Nick
 
If you are using MSFlexGrid, you can just change the grid pointers to the cell you want to change the color of and use cellBackColor. For example,

Code:
MSFLexGrid.row = 0
MSFLexGrid.col = 0
MSFlexGrid.CellBackColor = 14603939

This will change the first cell to a light blue background 1001100 1110101 1101011 1100101
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top