how to pass DataSet to modal form?

U

Uri Dor

Hi,
My main form shows a datagrid with data and I want to open a modal
dialog with bound controls on it when the user double-clicks a row.
Both forms have an instance of my typed dataset and the controls on the
dialog are bound to its dataset.
I pass the row I want to the dialog and use DataSet.Merge to add the row
to the dialog's DataSet. At this point the row is Unchanged, which is OK.
As an example, let's assume a column holds the value "11".
After typing "22" in the bound textbox, the value is "22", but the
RowState is still Unchanged. Moreover, the DataRowVersion.Original
version of that column is "11" as expected ! So it's changed but
unchanged !?

Any ideas?
 
U

Uri Dor

Let's put aside my specific example - does anyone know of a reasonable
way to copy my data into the modal dialog's DataSet and then get the
changes after it's done?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top