We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GDBG Sort Problem

Thread ID:





39850 Jan 19,2006 02:11 PM UTC Jan 19,2006 11:35 PM UTC WinForms 1
Tags: GridControl
Christopher Dugdale
Asked On January 19, 2006 02:11 PM UTC

Hi, I''m using a GDBG and I have hooked into the SortHandler event. In my custom handler I store the expanded state of each row and then I call sort on the datasource. After the sort, I restore the row expanded state. However if I click in quick succession on the column header to sort, the following exception is produced. Any ideas what is the cause and how this can be fixed? 2006-01-18 16:35:10,253 ERROR - Unhandled exception occurred: Exception: System.OutOfMemoryException Message: Failed to create a bitmap compatible with the screen to get information about screen bitmap format. Source: System.Windows.Forms at System.Windows.Forms.DibGraphicsBufferManager.bFillBitmapInfo(IntPtr hdc, IntPtr hpal, BITMAPINFO_FLAT& pbmi) at System.Windows.Forms.DibGraphicsBufferManager.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits) at System.Windows.Forms.DibGraphicsBufferManager.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height) at System.Windows.Forms.DibGraphicsBufferManager.AllocBuffer(Graphics targetGraphics, IntPtr targetDC, Rectangle targetBounds) at System.Windows.Forms.DibGraphicsBufferManager.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetBounds) at System.Windows.Forms.DibGraphicsBufferManager.AllocBuffer(IntPtr target, Rectangle targetBounds) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg) at Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(Message& msg) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

stanleyj [Syncfusion]
Replied On January 19, 2006 11:35 PM UTC

Hi Chris, This thread discuss a solution for this, see if this will work for you. Best regards, Stanley


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon