Removing A Data Relation In VB2019

  • Thread starter Thread starter Developer Dude
  • Start date Start date
D

Developer Dude

Guest
Hi:


How would I dispose of the data relation so that I can dispose of the

two datatables?

'Create A DataRelation.
Dim data_relation As New _
DataRelation("SE_CS", dsPSB1.Tables("dtSE").Columns("SE_KEY"), dsPSB1.Tables("dtCS").Columns("CS_SE_KEY"))
dsPSB1.Relations.Add(data_relation)


Remove A DataRelation Called "SE"CS"

'Remove DataTables From The DataSet.
dsPSB.Tables.Remove("dtSE")

dsPSB.Tables.Remove("dtCS")


'Dispose Of The Form.
Me.Dispose()

Continue reading...
 

Similar threads

D
Replies
0
Views
90
Developer Dude
D
D
Replies
0
Views
139
Developer Dude
D
D
Replies
0
Views
131
Developer Dude
D
Back
Top