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
15
Object Null reference Error - asp.net dropdown list inside webdatagrid
posted

I have  webdatagrind which is pulling data from database. there is one asp.net dropdownlist inside webdatagrid  which is also pulling data from the database.

the problem is

I can able to removing selected record using check box from the grid successfully and then reloading grid again from the database .

But i am getting error with (dropdownlist.selectitem.text) second time when  i  select check box and then submit.

Thanks for your help

Parents
No Data
Reply
  • 17475
    Offline posted

    Hello Chiranjeevi,

    The reason for the an exception to appear after a record is deleted could be that the data is no longer available in the database.

    Does the error appear the second time the user deletes a row in the grid?

    You mentioned that the error appears with dropdownlist.selectitem.text, please share the stack trace of the exception so I can look further into it.

Children