U++ framework
Do not panic. Ask here before giving up.

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: 3458
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 1026 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: Wed Apr 29 06:30:17 GMT+2 2026

Total time taken to generate the page: 0.00846 seconds