Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPF Blank SpreadSheet returning: System.ArgumentNullException #52

Open
dreamblader opened this issue Sep 13, 2017 · 4 comments
Open

WPF Blank SpreadSheet returning: System.ArgumentNullException #52

dreamblader opened this issue Sep 13, 2017 · 4 comments

Comments

@dreamblader
Copy link

Hello,

I'm creating a WPF application using your spreadsheet. I started a simple empty spreadsheet using the code in my xaml:

<rg:ReoGridControl x:Name="grid">
                </rg:ReoGridControl>

However, every time I try to input any information in the empty cells like a user would do, the application crashes returning the erro: System.ArgumentNullException.

What is even more odd, it's if a put a simple "hello world" in the first cell the entire spreadsheet start to accept inputs without crashing.

Sorry if this a dumb question. I'm very new to wpf and using Reogrid.

@jingwood
Copy link
Member

jingwood commented Sep 13, 2017

Hi @dreamblader, can you run ReoGrid WPF from source code and post the details of error information, such as the call stack list in order to know where the code crashes. Thanks.

@dreamblader
Copy link
Author

dreamblader commented Sep 14, 2017

I don't know if this can help, but this is what appears in my debbug section of my application:

[14/09/2017 11:15:25] resource pool: create resource pool...
[14/09/2017 11:15:27] actionmanager: do action: SetCellDataAction[Set Cell Value: a]
[14/09/2017 11:15:27] workbook: internal exception: Value can't be null.
Parameter name: v
An exception occurred with no treatment of type "System.ArgumentNullException" in PresentationCore.dll

I think somehow in the SetCellDataAction the application is not passing the cell position value. Atleast it is what seems like.

@dreamblader
Copy link
Author

I'm still having this problem and it's driving me insane. The strange part it is that only happens when I run my program a 2nd time and so forth. The 1st time I can add information to the cells with no problem. The WPF Demo Code don't have this problem and I tried to copy it to my application and it still doesnt work.

I'm really feeling defeated here.

@jingwood
Copy link
Member

jingwood commented Sep 19, 2017

@dreamblader, when the exception happened, can you make a screen snapshot and upload to here? It's better if the snapshot contains the error information and the window of Visual Studio.

Also, if the WPF Demo code doesn't have problem, you can check the difference of project settings between your project and the WPF Demo project.

  • Does your project contain other 3rd-party software? Try create from an empty project.
  • What is the .NET platform version of your project?
  • What is your culture and language setting of Windows? e.g. en-US, ReoGrid will error when using some non-English cultures.

(You can directly drag and drop the image file from your computer into the input box to upload images)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants