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
1215
The string parameter 'key' cannot be null or empty
posted

This error occurs in my WebDataGrid when I edit cells after a postback.  The first time works okay, but the second time throws this error:

    The string parameter 'key' cannot be null or empty.

    Parameter name: key

I have attached a simple project that demonstrates this.  You'll see that there is only one row in the grid, and it is not null or empty.

How to reproduce:

1. Run the attached app

2. Enter text into the second column

3. Click Submit

4. Repeat steps #2 and 3 (you will see the error)

 

 

 

WebApplication3.zip
Parents
  • 37874
    posted

    Hi Ray,

    Thank you for the sample. I have reviewed it and it seems that the issue is caused by the call to ClearDataSource method. Remove this line and it should be working.

    Let me know if you have any further questions.

Reply Children