B
Bill Yanaire
Using VB.NET 2005, Windows Form and I bind a DataGridView to a table
dgvFees.DataSource = tbl
I make some changes to the cells in the grid and when I leave the grid, I
run the following code:
For Each DR As DataGridViewRow In Me.dgvFees.Rows
If dgvFees.IsCurrentRowDirty = True Then
ChangesDone = True
Else
ChangesDone = False
End If
Next
Sometimes it works and sometimes it doesn't. I can't pinpoint why it does.
I have debugged and there is no rhyme or reason as to why it isn't always
true when changes are made.
If anyone could give me some pointers, I would appreciate it.
Thank you.
dgvFees.DataSource = tbl
I make some changes to the cells in the grid and when I leave the grid, I
run the following code:
For Each DR As DataGridViewRow In Me.dgvFees.Rows
If dgvFees.IsCurrentRowDirty = True Then
ChangesDone = True
Else
ChangesDone = False
End If
Next
Sometimes it works and sometimes it doesn't. I can't pinpoint why it does.
I have debugged and there is no rhyme or reason as to why it isn't always
true when changes are made.
If anyone could give me some pointers, I would appreciate it.
Thank you.