Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

Problem removing a table from a dataset in vb 2010

$
0
0
Using VB 2010 Express

I have a dataset that contains a table I want to remove.

I used the code below but nothing happened.
When I clicked "Edit Dataset with Designer" after running the code below, the table was still there.

What do I need to do differently?

undefined Code:
  1. If (Me.DeiDatabaseDataSet2.Tables.CanRemove(Me.DeiDatabaseDataSet2.ProspectTable)) Then
  2.             MsgBox("Can delete this table")
  3.             Me.DeiDatabaseDataSet2.Tables.Remove(Me.DeiDatabaseDataSet2.ProspectTable)
  4.         Else
  5.             MsgBox("CAN NOT delete this table")
  6.         End If

Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>