System.Data.DataRowView does not contain a property with the name '*************'


  • Hello,  I have one problem in my application.

    I am getting error like 

      “System.Data.DataRowView' does not contain a property with the name '****' ”

    This error comes randomly and seldom on different pages. The pointed column in exception exists in table and returns.

    The page works fine but sometimes this error comes and after refreshing of page is away.

    I have tried different approaches for database operations but none of them is helping.

    Approach 1: Using one single static connection object all over the application.

    Approach 2: Each method is having its own connection object

    But still I am getting the same problem and it occurs randomly, it is not fixed.
    Can anyone suggest what could be the problem?
    Friday, October 30, 2009 2:26 PM