TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pelumi Eluyera
NA
24
9k
Object reference not set to an instance of an object.
Mar 28 2015 7:51 PM
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
Reply
Answers (
2
)
How can I pass empty textboxes
MVC