Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing newly added record on GridView Cancel
Message
 
À
04/01/2006 07:30:07
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01083064
Message ID:
01083412
Vues:
11
Rex,

>I have a situation similar to the demo in which I add a new record to a GridView and click Cancel without adding an values to the new row. This abandons the edit session, but leaves the newly added record in the DataTable.
>
>How can I tell if the record is newly added and empty so I can delete it?

You can check to see if the RowState property of the DataRow is Added.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform