Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » How to customise the appearance of a cell grid item? Collapse All
Subject Author Date
Malcolm D Mar 29, 2007 - 7:17 PM

I was wondering how to customise the appearance of a property cell grid item (well, any grid cell item I guess).
Are there any samples for how this is done?
I have only found samples for using the the cell grid items, not actually change the appearance or the behaviour of a cell grid. I have also seen suggestions for how to customise the drop down, but I’m more after how to customise the actual cell.


Technical Support Mar 30, 2007 - 12:19 PM

There are many methods for customizing the appearance of a cell. There are methods for changing the background and text colors in different states, methods for changing font parameters like Height, Width, Weight, Italic, Underline, StrikeOut, Quality, CharSet and FaceName. You can also display three types of built-in buttons to the cell: ellipsis, drop-down and up-down. Besides, as Christina said, by overriding various virtual methods you can implement any cell behavior that has yet implemented in the ready-to-use 35 built-in cells.

Suhai Gyorgy Mar 30, 2007 - 2:23 AM

Check out ProfUIS Help for the overridables of CExtGridCell class. There are methods there like OnPaintBackground, OnPaintForeground, OnQueryCellFont, OnQueryTextColor, etc. Overriding these methods lets you customize the appearance of cells.