A PInvoke exception may occur when starting to edit a cell. This issue was fixed in version 0.8.5.1. To fix this problem in a development environment, follow these steps:
-
Open the ReoGrid project.
-
Open the source file
Common/Win32.cs. -
Find the definition of the
SendMessagemethod:public static extern int SendMessage(IntPtr hWnd, uint Msg, long wParam, long lParam); -
Change the last two parameter types from
longtoIntPtr, as shown below:public static extern int SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam); -
Find the caller of the
SendMessagemethod inReoGridControl.csand change the arguments to:new IntPtr(value) -
Rebuild and done.