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 Tech Support » How to create custom drop down grid cell item Collapse All
Subject Author Date
Michael Nitsche Apr 19, 2012 - 9:28 AM

I would like to create a grid cell item that will be used in a property grid so I can instead of showing a drop down of enumerated types, show a drop down of custom drawn items that would illustrate the enumeration values. Should I inherit from the CExtGridCell class and is there a help topic on doing something like this?

Thanks in advance.

Technical Support Apr 23, 2012 - 8:56 AM

Yes. You need a new grid cell class with custom painted items in popup list box. The CExtGridCell::OnPopupListBoxItemDraw() and CExtGridCell::OnPopupListBoxItemMeasure()) virtual methods can be overridden for providing a custom size and look for popup list box items. The CExtGridCell::OnPaint***() virtual methods allow you to repaint the entire grid cell or any of its build in parts. The How to define a custom cell type? question is answered here:
Please note, you can use HTML everywhere where you see simple plain text in any of Prof-UIS components. HTML can contain images. So, you can use HTML instead of custom drawing.