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

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Hiding in GridCtrl. Special case.
Hiding in GridCtrl. Special case. [message #18385] Thu, 25 September 2008 18:19 Go to next message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
Hi, is there any way of hiding a column without it to appear in GridCtrl menu (left-click), so the user doesn't have to know about it? I'm using GridCtrl with Hiding(). Hidden() applied to a column do that hiding it initially but not from menu.

Regards, Andrei.


cdabbd745f1234c2751ee1f932d1dd75
Re: Hiding in GridCtrl. Special case. [message #18398 is a reply to message #18385] Fri, 26 September 2008 00:28 Go to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

bytefield wrote on Thu, 25 September 2008 12:19

Hi, is there any way of hiding a column without it to appear in GridCtrl menu (left-click), so the user doesn't have to know about it? I'm using GridCtrl with Hiding(). Hidden() applied to a column do that hiding it initially but not from menu.

Regards, Andrei.

Yes, use AddIndex instead of AddColumn.
grid.AddIndex(ID)
grid.AddIndex(HIDDEN_NAME);
grid.AddColumn(PUBLIC_NAME); // only this column will be available in popup menu

Previous Topic: Date pasted in GridCtrl saved in sqlite. Problem and solution
Next Topic: whanaction whenarrayaction
Goto Forum:
  


Current Time: Mon Sep 14 18:17:45 GMT+2 2026

Total time taken to generate the page: 0.00623 seconds