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
Loading

Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Mar 28, 2015, 5:14 PM EDT
i think there may be problem in
DataSetNumber1.TBL_AppointmentsRow please check either reference of Dataset or table is not null....
Akhil GargRank #772 · 3K reputationPosted Mar 28, 2015, 8:44 PM EDT