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 Tech Support » CExtGridWnd - Is it possible to merge a Cell on multiple columns ? Collapse All
Subject Author Date
Fabien Masson Nov 11, 2006 - 4:02 AM

Hi,

I was wondering if it was possible to use outer bottom to display a one line of statistics about the content of grid using all the relevant header column space ?

Imagine we have some records filtered by a query in the grid and we want to display the number of records filtered with some nice texts and comments at the bottom of the grid.
Is it possible to use only one cell which span multiple columns of header outer bottom ?

For the moment, by design, we had to add a static at the bottom of the grid ; not so elegant.

Thanks for your valued work,
Regards,
Fabien.

Fabien Masson Nov 14, 2006 - 9:22 AM

Thanks for the sample.

I had already figure out how to merge my outer bottom header line based on your previous post and it looks superb for our project.

Since we have to develop in the coming weeks an heavy grid with a lot of merged headers, we’ll look deeper to your samples because it’s always the best place for learning the right way to do it.

Again, best regards and keep your excellent work!

Fabien Masson Nov 13, 2006 - 4:45 AM

This question was already answered...

http://www.prof-uis.com/Forum_View.aspx?CID=40&M=9272&s=cextgridcell

I will try it now since it doesn’t seem to be too hard.
Thanks anyway.

Technical Support Nov 13, 2006 - 12:04 PM

Although the CExtGridWnd class does not support cell joining explicitly, you can emulate this feature by overriding its virtual methods. For instance, as you can see a property category row in the categorized tree grid window in the property grid control takes up two columns. Please download this ZIP with two simple projects that shows how to do this by overriding CExtGridWnd::OnGbwAdjustRects().