Advertisement

07.15.2008 at 04:38AM PDT, ID: 23565671
[x]
Attachment Details

How do I change DataRow.RowState to Added?

Asked by j055 in .Net Editors & IDEs, Visual Studio .NET 2005

Tags: Microsoft, ADO.NET, latest, DataTables and TableAdapers

Hi

I have filled a DataTable from a different data source to the one I want to insert into. I want to use my TableAdapter.Update method to insert the DataTable rows. If I could change the DataRow.RowState to Added that would solve my problem but the property is read only (perhaps for good reason).

The DataTable from the source data uses the same schema as the destination source.  Are there any simple options available to achieve this?

Thanks
AndrewStart Free Trial
[+][-]07.15.2008 at 05:02AM PDT, ID: 22005993

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Visual Studio .NET 2005
Tags: Microsoft, ADO.NET, latest, DataTables and TableAdapers
Sign Up Now!
Solution Provided By: j055
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628