Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » How to hide/show gridctrl column at runtime
Re: How to hide/show gridctrl column at runtime [message #44483 is a reply to message #44456] Mon, 16 March 2015 11:41 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3437
Registered: August 2008
Senior Veteran
Hello Daniel

After hacking a little bit in GridCtrl I have commented out this in Hidden() function:

GridCtrl::ItemRect& GridCtrl::ItemRect::Hidden(bool b)
{
	hidden = b;
//	if(hidden)
//		size = 0;
	return *this;
}

In addition, after calling Hidden() I call Show(false) to the EditFields assigned to Hidden columns

With these changes the results are like this

index.php?t=getfile&id=4755&private=0
It is not perfect but at least it is functional by now.
  • Attachment: Screen.png
    (Size: 5.83KB, Downloaded 865 times)


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Change row appearance based on column value in that row
Next Topic: Header in body
Goto Forum:
  


Current Time: Sat Jun 14 07:48:06 CEST 2025

Total time taken to generate the page: 0.05288 seconds