Re: window form detail view auto save
- From: "gs" <gs@xxxxxxxxxxxxxx>
- Date: Sun, 30 Dec 2007 00:06:48 -0700
got the save partially solved. on the event rowLeave
DataRow[] dr = ieStringTmpDataSet.Regex.Select("", "",
DataViewRowState.ModifiedCurrent);
if (regexDataGridView.IsCurrentRowDirty | dr.GetUpperBound(0) >= 0){
DialogResult dlgReslt = MessageBox.Show("Save Changes?",
this.Text + " - The row has unsaved changes",
MessageBoxButtons.YesNo);
if (dlgReslt == DialogResult.Yes){
regexBindingNavigatorSaveItem.PerformClick();
setStatus("Saved change to regex " + regexNameTextBox.Text);
}else
{ //' problem with cancelling change, cancel edit does not
work
// on next row leave wihtout additonal change, I still
get prompted
// help here to cacnel the change
}
}
"GS" <gsmsnews.microsoft.comGS@xxxxxxxxxxxxxxxxx> wrote in message
news:eIx7a1pSIHA.5516@xxxxxxxxxxxxxxxxxxxxxxx
I Google search for answer to detected changes to the current row in detail
view of a windows form ( not datagridview), so far I have not got the
right
search term to get me the answer, certainly I found lots on datagridview
and
.net asp form.
Is there an easy way to detect if the current record has been changed
during
row leave or somehow let me prompt user to save change or cancel edit
.
- Follow-Ups:
- Re: window form detail view auto save
- From: christery
- Re: window form detail view auto save
- References:
- window form detail view auto save
- From: GS
- window form detail view auto save
- Prev by Date: Re: filesystem watcher and more
- Next by Date: Reading from text from another application
- Previous by thread: window form detail view auto save
- Next by thread: Re: window form detail view auto save
- Index(es):