Delete
-
I am trying to delete a record using item deleteing event. But it is showing error as null reference exception. Can anybody help please.
Not based on this. What line gives you the error ? What does your code look like ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Not based on this. What line gives you the error ? What does your code look like ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
It is inside a details view. I have taken the values inside the details view from session object I have a kept a int to take the datakey value. but this is showing an error int Refno = (int)DetailsView1.DataKey.Value;
and does the debugger tell you that one or more of these values are null, or Value is not an int ? Does Convert.ToInt32, or int.TryParse do better than straight cast ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
and does the debugger tell you that one or more of these values are null, or Value is not an int ? Does Convert.ToInt32, or int.TryParse do better than straight cast ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )