Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 » Embedded cells Collapse All
Subject Author Date
Lucie Marie Gauthier Apr 27, 2007 - 8:53 AM

Hello,
I’ve been going through the documentation but I haven’t found any paths for this
Question,
Is it possible to have multiple grid cell objects embedded into a grid cell object?

Thanks,

Fednav

Lucie Marie Gauthier May 1, 2007 - 7:37 AM

Thanks. I’ll look into this sample.

Lucie Marie Gauthier Apr 30, 2007 - 8:19 AM

Sorry. Let me try to explain this.

The idea was to have a grid cell capable of containing two or more lines of text and the ability to control the properties of each line (like background color or text color) independently. I said embedding grid cells in order to have access to the properties of each item or line of text, treating each line/item as a grid cell object, but it would actually be more like a CListCtrl in MFC where you can have multiple items.

E.G.
Let’s say that for a grid that displays student records, you want to have one cell on each row that would contain the courses the student is currently taking. I could then set the height of the row to a value that would allow the user to see at least the first three courses or scroll through the list to view all entries for a particular student record.

Does it make sense?

Technical Support May 1, 2007 - 5:51 AM

Unfortunately neither cell splitting nor cell joining is supported at the moment. However it is possible to implement cell joining in particular cases. For instance, a category name in the property grid and a group row in the report grid take up the entire row. Cell joining is based on the CExtGridBaseWnd::OnGbwAdjustRects() virtual method. You can download a sampe that demonstrates how you could use this method.

P.S. We plan to add this feature in one of the next versions.

Technical Support Apr 28, 2007 - 11:54 AM

Please let us know what you mean by embeddable cells exactly?