I have column group and using row layout with groups.
When someone plays with group sizing (only when cursor is "resizeNWSE" ) exception is thrown.
How can I block resizing for entire column group?
-------------------------------------------------------
Object reference not set to an instance of an object.
at Infragistics.Win.UltraWinGrid.UltraGridBand.ResizeLayoutItemHelper(UIElement elem, ILayoutItem resizeItem, Size containerSize, Size itemTargetSize, Point delta, Boolean raiseResizeNotification, Boolean modifyWidthDimension, Boolean modifyHeightDimension) at Infragistics.Win.UltraWinGrid.UltraGridBand.ResizeLayoutItem(UIElement elem, ILayoutItem resizeItem, Size containerSize, Point delta) at Infragistics.Win.UltraWinGrid.UltraGridBand.ResizeLayoutItem(ILayoutItem resizeItem, Size containerSize, Point delta) at Infragistics.Win.UltraWinGrid.HeaderUIElement.ApplyAdjustment(Point delta) at Infragistics.Win.AdjustableUIElement.OnMouseUp(MouseEventArgs e) at Infragistics.Win.UltraWinGrid.HeaderUIElement.OnMouseUp(MouseEventArgs e) at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e) at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e) at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) at Infragistics.Win.UltraControlBase.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I am also seeing this error in the latest service release of 2014.2
I will try to upgrade to 2015.1 but I am not hopeful if the bug has been around since 2012. Is there some workaround ?
Greg
2015-04-22 9:05:48 PM Application_ThreadException():System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Win.UltraWinGrid.UltraGridBand.ResizeLayoutItemHelper(UIElement elem, ILayoutItem resizeItem, Size containerSize, Size itemTargetSize, Point delta, Boolean raiseResizeNotification, Boolean modifyWidthDimension, Boolean modifyHeightDimension) at Infragistics.Win.UltraWinGrid.UltraGridBand.ResizeLayoutItem(UIElement elem, ILayoutItem resizeItem, Size containerSize, Point delta) at Infragistics.Win.UltraWinGrid.UltraGridBand.ResizeLayoutItem(ILayoutItem resizeItem, Size containerSize, Point delta) at Infragistics.Win.UltraWinGrid.HeaderUIElement.ApplyAdjustment(Point delta) at Infragistics.Win.AdjustableUIElement.OnMouseUp(MouseEventArgs e) at Infragistics.Win.UltraWinGrid.HeaderUIElement.OnMouseUp(MouseEventArgs e) at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e) at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e) at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) at Infragistics.Win.UltraControlBase.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Hi,
Maybe you could try :
ultraGrid1.DisplayLayout.Override.AllowRowLayoutLabelSizing = Infragistics.Win.UltraWinGrid.RowLayoutSizing.None;
Let me know if you have any further questions.
Regards
Thanks for video.
Can I block resizing in some override for all groups, or I need to set it separately for each group?
Maybe sobe group initialize event in which I could do the job?
My version is 11.1.20111.2090 (.2111 did not worked too well in our project :)
Hello Artur,
I try to reproduce your issue in a small sample, but without success. Could you please tell me what is your current version and do you have any installed service release and which one. Please take a look at the attached video file where I try to reproduce your issue and if you think that I miss any specific steps, please write me.
If you want to prevent Group resizing, then you could set AllowCellSizing = None of that Group. Please take a look at the second part of attached video for more details.
Let me know if you have any questions.