Hi,
Here is my code :
For Each row As DataRow In m_dsTabs.Tables (0).Rows
If CInt(row("TabId ")) = DirectCast(tabQ ryTabs.Selected Tab,
QueryTabPage).T abId Then
m_dsTabs.Tables (0).Rows.Remove (row)
Exit For
End If
Next
m_dsTabs.Accept Changes()
m_dsTabs.GetCha nges(DataRowSta te.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(tabQ ryTabs.Selected Tab,
QueryTabPage).T abId Then
m_dsTabs.Tables (0).Rows.Remove (row)
Exit For
End If
Next
m_dsTabs.Accept Changes()
m_dsTabs.GetCha nges(DataRowSta te.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
Comment