Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting a row into a data set
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01257767
Message ID:
01257772
Vues:
15
Hi Kevin,

I would set a breakpoint, run it in debug and check in the Locals or Watch window to see if your objects are instantiated, in scope etc.

Bill

>When I run the code below, I get "Object reference not set to an instance of an object." on the line with the NewRow() call.
>
>What am I doing wrong here?
>
>
>DataRow oDataRow;
>
>oDataRow = oDataSet.Tables["mnuTabs"].NewRow();
>oDataRow["ProductKey"] = 1;
>oDataRow["Sequence"] = 100;
>oDataRow["TabCaption"] = "Stuff";
>
>oDataSet.Tables["mnuTabs"].Rows.Add(oDataRow);
>
>
>Thanks
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform