Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting current row in a datatable
Message
De
27/01/2005 12:13:32
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00981229
Message ID:
00981257
Vues:
47
Hi, Einar-

>If C# doesn't like what I am casting it to, cast it to something else <s> This seems to work like I wanted it to:
>
>((System.Data.DataRowView) this.myBindingManager.Current).Delete();
>
Or, one could check GetType, or even the help ;-).

"The Current object contains the value of the current item in the data source. To use the value of the current item, you must cast the item to the Type of the object contained by the DataSource. For example, a DataTable contains DataRowView objects. To determine the type of the current object, use the GetType and ToString methods."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform