Multiple Changes

Aug 14, 2008 at 2:25 PM
Hi all,

Very basic question most probably, I bind a DataGridView to my object from the repository factory, and say I make several changes to different rows how do I save all the changes? From what I can find on the repository to do a change I need to do the following:

I have a master detail view (this is just an example):
DAL.Contacts saveContacts = new DAL.Contacts();
saveContacts.ID = Convert.ToInt32(label1.Text);
saveContacts.Fullname = textBox1.Text;
saveContact.Email = textBox2.Text;

BLL.Contacts theChanges = new BLL.Contacts();

Or am I doing something TOTALLY wrong here?

Aug 14, 2008 at 2:56 PM
Edited Aug 14, 2008 at 2:57 PM
I can be a lazy bugger at times so sorry for wasting your time.

Another question on performance, how badly does it affect the performance if I do this:

private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)