Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Object reference not set to an instance of an object.
Pelumi Eluyera
Mar 28 2015 7:51 PM
551
Reply
I keep getting ObJect not an instance of an object error on the 4th line.
which is (_selecteedAppointmentRow = (DataSetNumber1.TBL_AppointmentsRow) row.Row;
Here is the whole code.
if (appointmentWithEngineer != null)
{
row = (System.Data.DataRowView)appointmentWithEngineer.DataItem;
_selectedAppointmentRow = (DataSetNumber1.TBL_AppointmentsRow)row.Row;
if (_selectedAppointmentRow == null)
MessageBox.Show("Appointment is null");
}
}
Any help will be appreciated.
Regards
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How can I pass empty textboxes
MVC