Re: Create New DataTable From DataView by Axe
Axe
Tue Oct 28 21:57:04 CST 2003
I need to re-table the view because it's been modified as a DataView. Using
the .table property only returns the original table prior to any
modifications. I learned that lesson a long time ago having spent many
fruitless hours playing with that idea.
However, I just changed all my routines to accept a DataView and either pass
in the DefaultView of the DataTables in my app or pass in the modified
(sorted/filtered, etc.) DataViews. Didn't want to do that at first, but
necessity is the mother of invention, right?
Axe
"Daryll Shatz" <dshatz@hotmail.com> wrote in message
news:elBEvDcnDHA.2652@TK2MSFTNGP09.phx.gbl...
> You can try: dataview.table which I believe will return the table object
> of the dataview
>
> You can also create a table directly without using the dataview:
>
> DIM datatable as new datatable("TableNameHere")
>
>
>
> "Axe" <way@too.much.spam> wrote in message
> news:KXwnb.7427$X22.5570@newsread2.news.atl.earthlink.net...
> > I have a DataView but now I need a DataTable to pass into several
routines
> > I've created. Can I make a DataTable from a DataView? The DataView is
> now
> > sorted and cleaned up and I don't want to reference the original table
the
> > DataView came from.
> >
> > Axe
> >
> >
>
>