Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing values in a grid
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01337268
Message ID:
01337307
Views:
11
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform