Oops! Never mind. I tried it one more time and it seems to be working now. Kindly disregard this message.
>I am trying to let users change values in a grid and wanted to have some code that would save their changes when they leave the row. After some experimenting I was able to get past the errors with a newly added record but I still can't get the changed data to stay. I have an mmButtonSave for the grid but, for users that have gotten used to doing data entry on Access grids, I'm afraid they will forget to use the Save button. The code I tried is listed below. Any ideas for what I need to do to get this to work? Thanks.
>
>
> private void grdContactPersonal_RowLeave(object sender, DataGridViewCellEventArgs e)
> {
> if (this.oContact.IsChanged())
> {
> if (this.oContact.State.ToString() != "Added")
> this.oContact.SaveRow();
> }
> }
>
Linda Harmes
HiBit Technologies, Inc.