• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

.NET Database programming (bug?)

SoftwareEng

Senior member
I have a data-bound form (via BindingSource and TableAdapter) and need to detect when the user changes data in a field. Microsoft says, check the row's the "DataRowState" property (if = Modified, then the row changed by user). But it's never equal to that.

What's up with that 🙁




Private Sub theBindingSource_CurrentItemChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Tbl_65Election_AccountBindingSource.CurrentItemChanged

Dim thisDataRow As DataRow = CType(theBindingSource.Current, DataRowView).Row

If (thisDataRow.RowState = DataRowState.Modified) Then
MsgBox("modified!")
Else
MsgBox("not modified")
End If

End Sub
 
Back
Top