S
Sam
Hi,
Here is my code :
For Each row As DataRow In m_dsTabs.Tables(0).Rows
If CInt(row("TabId")) = DirectCast(tabQryTabs.SelectedTab,
QueryTabPage).TabId Then
m_dsTabs.Tables(0).Rows.Remove(row)
Exit For
End If
Next
m_dsTabs.AcceptChanges()
m_dsTabs.GetChanges(DataRowState.Deleted)
GetChanges returns nothing. Why ? And do you think my method for
removing a row given a particular TabId (primary key of my table) is a
good way to do so?
Thx
Here is my code :
For Each row As DataRow In m_dsTabs.Tables(0).Rows
If CInt(row("TabId")) = DirectCast(tabQryTabs.SelectedTab,
QueryTabPage).TabId Then
m_dsTabs.Tables(0).Rows.Remove(row)
Exit For
End If
Next
m_dsTabs.AcceptChanges()
m_dsTabs.GetChanges(DataRowState.Deleted)
GetChanges returns nothing. Why ? And do you think my method for
removing a row given a particular TabId (primary key of my table) is a
good way to do so?
Thx
