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
Saqib Malick
NA
23
0
In my Master Detail Form Record row in Detail Gridview not save.
Dec 28 2009 12:07 PM
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) { }
}
Reply
Answers (
2
)
Primary Key Auto Increment Value show minus one (-1) in ID Textbox field at run time.
Swap characters for file linked datagridview