View previous topic :: View next topic |
Author |
Message |
bhofmann
Joined: 20 Aug 2007 Posts: 26
|
Posted: Tue Apr 15, 2008 2:46 pm Post subject: Prefix column and cell edition |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Apr 15, 2008 10:50 pm Post subject: |
|
|
How are you deactivating the prefix column? _________________ Infralution Support |
|
Back to top |
|
|
bhofmann
Joined: 20 Aug 2007 Posts: 26
|
Posted: Wed Apr 16, 2008 7:52 am Post subject: |
|
|
I just change the column's Active property. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Apr 16, 2008 10:27 pm Post subject: |
|
|
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 |
|
|
bhofmann
Joined: 20 Aug 2007 Posts: 26
|
Posted: Thu Apr 17, 2008 9:32 am Post subject: |
|
|
Ok thank you for your answer. |
|
Back to top |
|
|
|