I have a lightweight data-basey kind of thing. Functionally, I'd like to read and write tables out to disk(plus maybe some other info in the future).
I chose to use the DataSet object, paired with the DataGridView control for the IO. The DataSet object can serialize out to disk and back again via the handle XML read/write functions.
However, there does not seem to be an obvious way to add information to the DataView control and have the DataSet object updated. Among other things, the DataGridView won't add a row for me in run-time and won't let me programmatically run the addrow method.
Clearly, I'm missing something.
What am I missing?
This has been suggested:
dataSet1.Tables["mytable"].Rows.Add();
But System.Data.DataRow does not permit direct construction, and I want to add a blank row for the DataGridView to fill in?
edit2: I'm dumb. There's a new row function.
Hmm. I'm wondering if this is just a Wrong Approach.