L
lee.ottaway
I'm using the following code to open a form and pass it a DataRowView
for modification:
row = dv.AddNew()
frm.DataRowView = row
frm.ShowDialog()
My question is, if the user presses the cancel button in the form
dialogue is it necessary to perform a mrv.CancelEdit (where mrv is of
course the DataRowView held at module level) or is it sufficient just
to exit the form using DialogResult.Cancel and then disposing of the
form?
I'm asking because I don't want to have redundant rows left hanging
around in memory waiting to cause problems.
Thanks
for modification:
row = dv.AddNew()
frm.DataRowView = row
frm.ShowDialog()
My question is, if the user presses the cancel button in the form
dialogue is it necessary to perform a mrv.CancelEdit (where mrv is of
course the DataRowView held at module level) or is it sufficient just
to exit the form using DialogResult.Cancel and then disposing of the
form?
I'm asking because I don't want to have redundant rows left hanging
around in memory waiting to cause problems.
Thanks