Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Updating Database When Dataset Filled from View (not table)

$
0
0

Background: I have a Windows Forms application with a datagridview control that is bound to a dataset. The dataset is filled with data from a database view. Some of the datagridview cells are editable, and rows need to be delete-able.

Problem: When a value in the grid is edited, how do I update the database? My trouble seems to be because the Update() dataset method cannot be called when the dataset points to a view with joins. Should I be adding the tables relevant to the view to the dataset as well, and then making the appropriate changes to the tables and then calling the update dataset method?

Thanks!



Viewing all articles
Browse latest Browse all 2535

Latest Images

Trending Articles



Latest Images

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