Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Prefix column and cell edition

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
bhofmann



Joined: 20 Aug 2007
Posts: 26

PostPosted: Tue Apr 15, 2008 2:46 pm    Post subject: Prefix column and cell edition Reply with quote

Hello,

I'm having some trouble with a prefix column and the F2 key:
I have a prefix column with a checkbox that I activate and deactivate depending on some setting. The tree is configured to select the main cell only. The trouble I'm having is when the prefix column is deactivated, if I press F2 it seems that the tree is trying to put the prefix column in edition mode instead of my actual main column, and so nothing happens.

Am I doing something wrong?
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Apr 15, 2008 10:50 pm    Post subject: Reply with quote

How are you deactivating the prefix column?
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
bhofmann



Joined: 20 Aug 2007
Posts: 26

PostPosted: Wed Apr 16, 2008 7:52 am    Post subject: Reply with quote

I just change the column's Active property.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Apr 16, 2008 10:27 pm    Post subject: Reply with quote

For normal columns the Active property determines whether the column is currently displayed (or is in the list of available columns when selecting columns). Prefix columns however are displayed within the MainColumn and setting the Active property on a Prefix column actually has no effect.

If you don't want the prefix column to be displayed you would need to set VirtualTree.PrefixColumn = null and call VirtualTree.Columns.Remove(column) to remove it from the VirtualTree columns.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
bhofmann



Joined: 20 Aug 2007
Posts: 26

PostPosted: Thu Apr 17, 2008 9:32 am    Post subject: Reply with quote

Ok thank you for your answer.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group