Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1180
How to block resizing of column group header (quick fix on exception)
posted

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)

 

Parents
No Data
Reply
  • 53790
    posted

    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.

    Regards

Children