Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

WPF Databinding to ADO Dataset - add record issue

$
0
0

Hi

I have a WPF form bound to a CollectionViewSource which is filled by a dataset table adapter.

This works well - I can navigate through the records and save changes back to the DB.

I used this walkthrough in building this :

http://msdn.microsoft.com/en-us/library/vstudio/dd547149.aspx

I have a button on the form to add new record/row.

I've managed to add a new row to the dataset by setting the fields in the code behind with literal values.

.. newrow.fields="...";

aPIntegrationDataSet.Jobs.Rows.Add(newrow);
aPIntegrationDataSetJobsTableAdapter.Update(aPIntegrationDataSet.Jobs);

Now I want to try and get the new row data from the WPF form.   Of course as this is bound I'm not sure how I can do it.

What is the solution to this problem?  I'd appreciate help with code as I'm quite new to C#


Lee Hawthorn ACMA, CGMA View my Performance Management blog at leehbi.com


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>