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   | 
		 
		
			
				
				
				
					
						  
						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   | 
		 
		
			| 
				
	 | 
 
	
		| 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
  
		
		
		
 |  
	| 
		
	 | 
 
 
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 02:18:20 CET 2025 
 Total time taken to generate the page: 0.04028 seconds 
 |