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)
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.
I think this is a bug. Please escalate it to your developers for review.
There is no logical reason why removing ClearDataSource should be required. In fact, when I remove it from my app, it causes other bugs to appear. This grid needs to be more robust.