How select query in dataset?

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

Using ASP.NET 2.0...

I have a DataSet1.xsd dataset (MyDs) I created. I have 1 simple SELECT
query called GetData (in MyDsTableAdapter).

How do I fill a new dataset using GetData?

I tried this, but it doesn't work...

Dim ds as new system.data.dataset
ds = MyDsTableAdapter.GetData

Any ideas? Thanks.
 
Never mind. I used the OBJECTDATASOURCE and it worked:

Dim ds As New System.Data.DataView

ds = Me.ObjectDataSource1.Select



Thanks!
 
Back
Top