In my Master Detail Form Record row in Detail Gridview not save.
I have a Master Detail Form where in my Detail Datagridview I am inserting record in a row at run time and than click on save button the row is not save and hide this row, while that when my cursor is on next row the record is save correctly, why this is not save the record when my cursor at first record.
My Save button code is here:
private void employee_Attendance_MasterBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
try {
this.Validate();
this.employee_Attendance_MasterBindingSource.EndEdit();
this.employee_Attendance_MasterTableAdapter.Update(this.dataSet_Employee_Attendance.Employee_Attendance_Master);
this.Validate();
this.employee_Attendance_DetailBindingSource.EndEdit();
this.employee_Attendance_DetailTableAdapter.Update(this.dataSet_Employee_Attendance.Employee_Attendance_Detail);
MessageBox.Show("Record has been updated");
}
catch (Exception) { }
}