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

DBGrid/DataGrid

Status
Not open for further replies.

SC1

Programmer
May 20, 2002
2
DE
Who can tell me how to change the fonts for individual cells in a grid? And Fore/Back Color?
 
Try setting the cell row and column properties and then set the font property kinda like this:

msgCalendar.Row = 3
msgCalendar.Col = 6
msgCalendar.CellFontName = "MS Sans Serif"
msgCalendar.CellFontBold = True
msgCalendar.CellFontSize = 10

I'm doing this for an mshflexgrid. I suspect it may work for a datagrid............
 
I don't have my book in front of me, but the method is to create a style with the colors/font and then apply that style during Validation. Hope that this get you started.

Regards,
vb_doc@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top