现在我的程序出现下面的错误
模板有47列,第一列显示一个Icon,其他全部是label。
确认内容:multirow6本身是否对行数有限制?或者是显示的内容多少和什么有关系。
下面的问题是否有解决方法。
补充:我从网上搜索了一下,此错误有可能和图片有关,不知道是否是multirow本身的bug.
Icon的设定方法:this.gcResultGrid.SetValue(rowIndex, "Icon", imageList1.Images[2]);
System.ComponentModel.Win32Exception: Not enough storage is available to process this command
at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits)
at System.Drawing.BufferedGraphicsContext.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height)
at System.Drawing.BufferedGraphicsContext.AllocBuffer(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
at System.Drawing.BufferedGraphicsContext.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
at System.Drawing.BufferedGraphicsContext.Allocate(IntPtr targetDC, Rectangle targetRectangle)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at GrapeCity.Framework.Forms.FrameworkControl.WndProc(Message& m)
at GrapeCity.Framework.Views.Windows.ElementContainerControl.WndProc(Message& m)
at GrapeCity.Win.MultiRow.GcMultiRow.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) |
|