Cannot delete a column on Data Grids

3
Error occurs when I try to delete a column from any Data Grid in my project.     System.InvalidCastException: Unable to cast object of type 'Mendix.Modeler.WebUI.View.Views.Grids.GridColumnView' to type 'Mendix.Modeler.WebUI.View.Views.IContainerView'.    at Mendix.Modeler.WebUI.View.ViewHelpers.ViewHelperFromView.RemoveChild(IMoveableView childView) in Mendix.Modeler.WebUI.View\ViewHelpers\ViewHelperFromView.cs:line 22    at Mendix.Modeler.WebUI.View.ViewHelpers.ViewHelperList.RemoveChild(IMoveableView childView) in Mendix.Modeler.WebUI.View\ViewHelpers\ViewHelperList.cs:line 23    at Mendix.Modeler.WebUI.View.ViewHelpers.ViewHelperList.RemoveChild(IMoveableView childView) in Mendix.Modeler.WebUI.View\ViewHelpers\ViewHelperList.cs:line 23    at Mendix.Modeler.WebUI.View.Views.Documents.FormView.<>c__DisplayClass17_0.<DeleteSelection>b__1() in Mendix.Modeler.WebUI.View\Views\Documents\FormView.cs:line 83    at Mendix.Modeler.Utility.UndoManager.<>c__DisplayClass43_0.<Do>b__0() in Mendix.Modeler.Utility\Undo\UndoManager.cs:line 136    at Mendix.Modeler.Utility.UndoManager.TransactionDo(IUndoManagerProvider provider, String actionDescription, Func`1 action) in Mendix.Modeler.Utility\Undo\UndoManager.cs:line 279    at Mendix.Modeler.WebUI.View.Views.Documents.FormView.DeleteSelection(IDeletableView[] viewsToDelete) in Mendix.Modeler.WebUI.View\Views\Documents\FormView.cs:line 0    at Mendix.Modeler.WebUI.View.Editors.FormEditor.Delete() in Mendix.Modeler.WebUI.View\Editors\FormEditor.cs:line 721    at Mendix.Modeler.Core.View.Common.Tasks.GlobalTaskRegistry.<>c__DisplayClass17_0.<RegisterEditTasks>b__4() in Mendix.Modeler.Core.View\Common\Tasks\GlobalTaskRegistry.cs:line 136    at Mendix.Modeler.Common.Tasks.ActionTask.PerformAction() in Mendix.Modeler.Core\Common\Tasks\ActionTask.cs:line 17    at Mendix.Modeler.Core.View.Common.Tasks.ContextMenuGenerator.<>c__DisplayClass3_0.<CollectMenuItems>b__2() in Mendix.Modeler.Core.View\Common\Tasks\ContextMenuGenerator.cs:line 61    at Eto.Forms.MenuItem.Callback.OnClick(MenuItem widget, EventArgs e)    at Eto.Wpf.Forms.Menu.MenuItemHandler`3.OnClick()    at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)    at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)    at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
asked
9 answers
3

Hey Nylle,

 

Sometimes when I experience a bug like this I'll either need to delete the component, and then run the application to refresh the compiled pages, or delete the page entirely and recreate it.

 

I know those may not be the easiest fixes, and that this may be frustrating, but one of those options should work.

 

Hope this helps,

Austin

answered
0

Please just try Reboot your Studio Pro fristly and take action again.

Otherwise maybe revert to some old version may be help.

 

answered
0

I have the same problem. Happend in 10.1.1, and persists in 10.2.0.

 

I started new blank apps both time, created an entity with at least 2 attributes, autogenerated overview pages.

When i now try to delete a column from the overview datagrid, i get the error above.

answered
0

I advice you to use Data grid2 and fill the columns manualy.

answered
0

I just copied a dataview with fewer columns and replaced the attribute values :/

answered
0

You can connect with mendix support team.They will fix the problem as soon as possible.

answered
0

Hey folks,

 

same here... it´s nerv racking...

answered
0

Is there any solution to the problem yet? One day we might be asked to delete the whole application we have built and rebuild.. well then will we choose Mendix again?!!!!!

answered
-1

use Data grid2 and fill the columns manualy.

answered