C# - VS2005 - Winforms - SQL2005
I have a bindingNavigator where I'm trying to trap changes before changing records.
I have the bindingNavigator 'Move' properties set to (none).
I open a record and make a change to one of the fields then call this
DataRowView drv = (DataRowView)tblTruckReportBindingSource.List[tblTruckReportBindingSource.Position];
if (drv.Row.RowState == DataRowState.Modified) return (true);
But it never shows that the DataRowState == Modified.
That is, unless I move to another row then move back, then it triggers.
I tried inserting drv.EndEdit(); but that does not help.
What do I need to do to get this to work?