What you're describing is an in-memory SQL engine...
Take a look at the following article that describes how you can use the ordinary SQL Select command against DataTables in a "disconnected" DataSet without going back to the underlying database.
http://home.hot.rr.com/gra
The article also has downloadable VB.Net source code for the SQL_Engine demonstration project.
Main Topics
Browse All Topics





by: cubixSoftwarePosted on 2006-09-06 at 03:48:51ID: 17461973
Hi
ds.Tables("User").Columns( "StateID") , _ s("StateID "))
When you create your data relation, you can use this as a datasource as follows...
dim ds as dataset
dim r as datarelation
' do all code to create your dataset with data from Users and States
' create relation
r = New DataRelation("UserStates",
ds.Tables("States").Column
ds.Relations.Add(r)
datagrid.datasource = ds
datagrid.datamember = "User.UserStates"
' now format the display of the datagrid using tablestyles etc. so only required columns are displayed
HTH