View previous topic :: View next topic |
Author |
Message |
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Tue Oct 18, 2005 9:26 am Post subject: Questions about Columns |
|
|
Hello Support
I have a very stange behaviour: The property AllowUserPinnedColumns seems to be work fine everywhere, except on a specific Tree. Setting the AllowUserPinnedColumns to false don't have any effect on the Context Menu. Have you an idea why?
It's possible to prevent to show the Context Menu on the Columns?
It's possible to disable "User Sort" for the entire Tree or for a Column?
Thanks and best Regards
Giuseppe |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Oct 19, 2005 1:42 am Post subject: |
|
|
Are you setting AllowUserPinnedColumns in the forms designer or in code? If you set it in code after the context menu has first been displayed then the context menu will not automatically be updated.
You can customize the items on the context menu by using the "Add Custom Header Menu" action in the forms designer (from the right click menu). If you don't want the context menu displayed at all you would have to override the ShowColumnHeaderMenu() method to do nothing.
You can disable user sorting of a column by setting the Column.Sortable property to false. _________________ Infralution Support |
|
Back to top |
|
|
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Wed Oct 19, 2005 12:23 pm Post subject: |
|
|
Infralution wrote: | Are you setting AllowUserPinnedColumns in the forms designer or in code? If you set it in code after the context menu has first been displayed then the context menu will not automatically be updated. |
Ok I think I found the reason:
My VT reside on a UserControl BaseClass. MyUserControl inherits from this UserControl.
The Desinger serializes the VT Properties for each UserControl. The VT.EndEdit() is also called 2x. First for UserControlBase. EndEdit seems to access the ContextMenu object.
Thanks Giuseppe |
|
Back to top |
|
|
|