Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing values in a grid
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01337268
Message ID:
01337307
Vues:
9
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform