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!

Datagrid font/colour change per row

Status
Not open for further replies.

bbuk

Technical User
Apr 27, 2002
44
GB
Hi
Is it possible to set the font and or colour for an individual row in a bound datagrid? If so how do I do it :p
 
I don't believe that you can do that in the datagrid.

However you can do it with the MSFlexgrid. You will set the cellforecolor property. To set a full row you will need to loop through the columns and set each cell's cellforecolor property appropriatly. Thanks and Good Luck!

zemp
 
Thanks for that advice. Is there a down side to using the MSFlexGrid for a very basic application which stores, retrieves and updates a log file in an access db?
 
The main downside to the MSFlexGrid is that it is noneditable. However there is a workaround that makes the grid look and act like an editable grid. It requires the coding for a floating text box. Search this site for the MSFlexGrid and you will see some examples of how this can be done.

If you are not suscessful, let me know and I can email you a test project that shows how I make the MSFlexGrid "editable". Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top