.

[Resolved] Value cannot be null. Parameter name: propName

Getting the following error: Value cannot be null. Parameter name: propName

The reason could be (it was in my case) that the gridview you are trying to bind to, contains a comma with no further fields (see below):

…. DataKeyNames=”FullNo1,StudyNo,

delete the comma:

…. DataKeyNames=”FullNo1,StudyNo

and that solves the problem.

[Feel free to post other solutions for an identical error message as above]

13 Responses to this post.

  1. Posted by Raja on 28.04.10 at 6:43 pm

    thanks this worked for me. I strugged almost for 2 hours and counldn’t notice an unwanted comma",".

  2. Posted by DJ on 28.04.10 at 6:43 pm

    Thanks man! Solved my problem within two minutes of detecting it! That’s how I love to work :-)

  3. Posted by ashok on 28.04.10 at 6:43 pm

    thanks this worked fine

  4. Posted by kaushik on 28.04.10 at 6:43 pm

    thx bro… it worked for me

  5. Posted by punit Rai on 28.04.10 at 6:43 pm

    realy u say its problm occurs due to the unwanted comma in grid view.

  6. Posted by Ranjeet on 28.04.10 at 6:43 pm

    Thanx Bro

  7. Posted by pietman on 28.04.10 at 6:43 pm

    @Rai:
    I’m sure there are many other related issues with different solutions,
    but in the above case, yes.

  8. Posted by mike on 28.04.10 at 6:43 pm

    thanks mate! working

  9. Posted by Manish on 28.04.10 at 6:43 pm

    thanks

  10. Posted by Ganesh on 28.04.10 at 6:43 pm

    Thanks…………………

  11. Posted by Subrata Sahu on 28.04.10 at 6:43 pm

    Thank You So much…..

  12. Posted by ambi on 28.04.10 at 6:43 pm

    Thank You So much

  13. Posted by Graham on 28.04.10 at 6:43 pm

    Magic! thanks for the help!

What's your thoughts on this?

*

Protected by WP Anti Spam