I have Dataset that I need to filter into another Dataset for display and I
can not find out how to do this. I have found methods for copying a Dataset
but I can not see how to filter the rows copied using my query.
I hoped to be able to use a DataAdaptor to do this but SelectCommand
requires a connection and I don't see how to create a connection to my
Dataset object.
Any pointers would be much appreciated.
Sid.
(VB.NET 2003) 11 2489
You can use a dataview of the table for display.
dv = New DataView()
dv.Table = ds.Tables("Customers")
dv.RowFilter = "Country = 'USA'"
Then use the dataview to display.
You can also copy the dataview to a new table using dv.ToTable.
Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"Sid Price" <si*@nowhere.comwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl...
>I have Dataset that I need to filter into another Dataset for display and I can not find out how to do this. I have found methods for copying a Dataset but I can not see how to filter the rows copied using my query.
I hoped to be able to use a DataAdaptor to do this but SelectCommand
requires a connection and I don't see how to create a connection to my
Dataset object.
Any pointers would be much appreciated.
Sid.
(VB.NET 2003)
Robin,
DataView.ToTable is not a defined method ... I am using VB.NET 2003.
I don't see any way to get the filtered data from the DataView into my new
Dataset.
Sid.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:Wq******************************@comcast.com. ..
You can use a dataview of the table for display.
dv = New DataView()
dv.Table = ds.Tables("Customers")
dv.RowFilter = "Country = 'USA'"
Then use the dataview to display.
You can also copy the dataview to a new table using dv.ToTable.
Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"Sid Price" <si*@nowhere.comwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl...
>>I have Dataset that I need to filter into another Dataset for display and I can not find out how to do this. I have found methods for copying a Dataset but I can not see how to filter the rows copied using my query.
I hoped to be able to use a DataAdaptor to do this but SelectCommand requires a connection and I don't see how to create a connection to my Dataset object.
Any pointers would be much appreciated. Sid.
(VB.NET 2003)
Sid,
Why do you need to get the data into a new dataset/datatable?
Just use the filtered dataview for display, that's what it is for.
The "ToTable" method is new in .Net 2.0, but you should not need it for
display purposes.
Kerry Moorman
"Sid Price" wrote:
Robin,
DataView.ToTable is not a defined method ... I am using VB.NET 2003.
I don't see any way to get the filtered data from the DataView into my new
Dataset.
Sid.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:Wq******************************@comcast.com. ..
You can use a dataview of the table for display.
dv = New DataView()
dv.Table = ds.Tables("Customers")
dv.RowFilter = "Country = 'USA'"
Then use the dataview to display.
You can also copy the dataview to a new table using dv.ToTable.
Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"Sid Price" <si*@nowhere.comwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl...
>I have Dataset that I need to filter into another Dataset for display and I can not find out how to do this. I have found methods for copying a Dataset but I can not see how to filter the rows copied using my query.
I hoped to be able to use a DataAdaptor to do this but SelectCommand
requires a connection and I don't see how to create a connection to my
Dataset object.
Any pointers would be much appreciated.
Sid.
(VB.NET 2003)
Kerry,
The application does its data processing using a Dataset in many areas. This
particular Dataset is built from an imported CSV rather than a database,
which is where many other Datasets come from. We do not want to duplicate
the functionality of our application to process this imported data, we want
to use the code that already exists, i.e. the code that expects data input
from a Dataset. It is not simply a matter of display.
Sid.
"Kerry Moorman" <Ke**********@discussions.microsoft.comwrote in message
news:68**********************************@microsof t.com...
Sid,
Why do you need to get the data into a new dataset/datatable?
Just use the filtered dataview for display, that's what it is for.
The "ToTable" method is new in .Net 2.0, but you should not need it for
display purposes.
Kerry Moorman
"Sid Price" wrote:
>Robin,
DataView.ToTable is not a defined method ... I am using VB.NET 2003.
I don't see any way to get the filtered data from the DataView into my new Dataset.
Sid.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message news:Wq******************************@comcast.com ...
You can use a dataview of the table for display.
dv = New DataView()
dv.Table = ds.Tables("Customers")
dv.RowFilter = "Country = 'USA'"
Then use the dataview to display.
You can also copy the dataview to a new table using dv.ToTable.
Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"Sid Price" <si*@nowhere.comwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl... I have Dataset that I need to filter into another Dataset for display and I can not find out how to do this. I have found methods for copying a Dataset but I can not see how to filter the rows copied using my query.
I hoped to be able to use a DataAdaptor to do this but SelectCommand requires a connection and I don't see how to create a connection to my Dataset object.
Any pointers would be much appreciated. Sid.
(VB.NET 2003)
CSV + 'BULK INSERT' = SQL Server
lose the training wheels; it doesn't make sense to reinvent the wheel
On Feb 21, 11:37 am, "Sid Price" <s...@nowhere.comwrote:
Kerry,
The application does its data processing using a Dataset in many areas. This
particular Dataset is built from an imported CSV rather than a database,
which is where many other Datasets come from. We do not want to duplicate
the functionality of our application to process this imported data, we want
to use the code that already exists, i.e. the code that expects data input
from a Dataset. It is not simply a matter of display.
Sid.
"Kerry Moorman" <KerryMoor...@discussions.microsoft.comwrote in message
news:68**********************************@microsof t.com...
Sid,
Why do you need to get the data into a new dataset/datatable?
Just use the filtered dataview for display, that's what it is for.
The "ToTable" method is new in .Net 2.0, but you should not need it for
display purposes.
Kerry Moorman
"Sid Price" wrote:
Robin,
DataView.ToTable is not a defined method ... I am using VB.NET 2003.
I don't see any way to get the filtered data from the DataView into my
new
Dataset.
Sid.
"RobinS" <Rob...@NoSpam.yah.nonewrote in message news:Wq******************************@comcast.com ...
You can use a dataview of the table for display.
dv = New DataView()
dv.Table = ds.Tables("Customers")
dv.RowFilter = "Country = 'USA'"
Then use the dataview to display.
You can also copy the dataview to a new table using dv.ToTable.
Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"Sid Price" <s...@nowhere.comwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl... I have Dataset that I need to filter into another Dataset for display and I can not find out how to do this. I have found methods for copying a Dataset but I can not see how to filter the rows copied using my query.
I hoped to be able to use a DataAdaptor to do this but SelectCommand
requires a connection and I don't see how to create a connection to my
Dataset object.
Any pointers would be much appreciated.
Sid.
(VB.NET 2003)- Hide quoted text -
- Show quoted text -
Well that is truly an very informative message ... NOT.
Perhaps you could explain how changing the source of the data would would
help us achieve our goal when it is clear our problem is associated with
DataAdapter and DataSet objects. Maybe you really are a smart as you think
you are and have the answer!
Sid.
"PFC Sadr" <pf******@hotmail.comwrote in message
news:11*********************@l53g2000cwa.googlegro ups.com...
CSV + 'BULK INSERT' = SQL Server
lose the training wheels; it doesn't make sense to reinvent the wheel
On Feb 21, 11:37 am, "Sid Price" <s...@nowhere.comwrote:
>Kerry,
The application does its data processing using a Dataset in many areas. This particular Dataset is built from an imported CSV rather than a database, which is where many other Datasets come from. We do not want to duplicate the functionality of our application to process this imported data, we want to use the code that already exists, i.e. the code that expects data input from a Dataset. It is not simply a matter of display.
Sid.
"Kerry Moorman" <KerryMoor...@discussions.microsoft.comwrote in message
news:68**********************************@microso ft.com...
Sid,
Why do you need to get the data into a new dataset/datatable?
Just use the filtered dataview for display, that's what it is for.
The "ToTable" method is new in .Net 2.0, but you should not need it for
display purposes.
Kerry Moorman
"Sid Price" wrote:
>Robin,
>DataView.ToTable is not a defined method ... I am using VB.NET 2003.
>I don't see any way to get the filtered data from the DataView into my new Dataset.
>Sid.
>"RobinS" <Rob...@NoSpam.yah.nonewrote in message news:Wq******************************@comcast.co m...
You can use a dataview of the table for display.
dv = New DataView()
dv.Table = ds.Tables("Customers")
dv.RowFilter = "Country = 'USA'"
Then use the dataview to display.
You can also copy the dataview to a new table using dv.ToTable.
Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"Sid Price" <s...@nowhere.comwrote in message news:uQ**************@TK2MSFTNGP04.phx.gbl... I have Dataset that I need to filter into another Dataset for display and I can not find out how to do this. I have found methods for copying a Dataset but I can not see how to filter the rows copied using my query.
>I hoped to be able to use a DataAdaptor to do this but SelectCommand requires a connection and I don't see how to create a connection to my Dataset object.
>Any pointers would be much appreciated. Sid.
>(VB.NET 2003)- Hide quoted text -
- Show quoted text -
import it into a database and learn how to use a fucking where clause.
Datasets are for goddamn retards, if datareaders are faster and you're
not using them then you're not putting your customers first
On Feb 22, 6:31 am, "Sid Price" <s...@nowhere.comwrote:
Well that is truly an very informative message ... NOT.
Perhaps you could explain how changing the source of the data would would
help us achieve our goal when it is clear our problem is associated with
DataAdapter and DataSet objects. Maybe you really are a smart as you think
you are and have the answer!
Sid.
"PFC Sadr" <pfc_s...@hotmail.comwrote in message
news:11*********************@l53g2000cwa.googlegro ups.com...
CSV + 'BULK INSERT' = SQL Server
lose the training wheels; it doesn't make sense to reinvent the wheel
On Feb 21, 11:37 am, "Sid Price" <s...@nowhere.comwrote:
Kerry,
The application does its data processing using a Dataset in many areas.
This
particular Dataset is built from an imported CSV rather than a database,
which is where many other Datasets come from. We do not want to duplicate
the functionality of our application to process this imported data, we
want
to use the code that already exists, i.e. the code that expects data
input
from a Dataset. It is not simply a matter of display.
Sid.
"Kerry Moorman" <KerryMoor...@discussions.microsoft.comwrote in message
>news:68**********************************@microso ft.com...
Sid,
Why do you need to get the data into a new dataset/datatable?
Just use the filtered dataview for display, that's what it is for.
The "ToTable" method is new in .Net 2.0, but you should not need it for
display purposes.
Kerry Moorman
"Sid Price" wrote:
Robin,
DataView.ToTable is not a defined method ... I am using VB.NET 2003.
I don't see any way to get the filtered data from the DataView into my
new
Dataset.
Sid.
"RobinS" <Rob...@NoSpam.yah.nonewrote in message news:Wq******************************@comcast.com ...
You can use a dataview of the table for display.
dv = New DataView()
dv.Table = ds.Tables("Customers")
dv.RowFilter = "Country = 'USA'"
Then use the dataview to display.
You can also copy the dataview to a new table using dv.ToTable.
Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"Sid Price" <s...@nowhere.comwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl... I have Dataset that I need to filter into another Dataset for display and I can not find out how to do this. I have found methods for copying a Dataset but I can not see how to filter the rows copied using my query.
I hoped to be able to use a DataAdaptor to do this but
SelectCommand
requires a connection and I don't see how to create a connection to
my
Dataset object.
Any pointers would be much appreciated.
Sid.
(VB.NET 2003)- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
Well, can you filter it and then move the rows from one dataset to the
other one one-by-one? That's about all I can think of, the "brute force"
method.
Robin S.
----------------------------------------
"Sid Price" <si*@nowhere.comwrote in message
news:uF****************@TK2MSFTNGP04.phx.gbl...
Kerry,
The application does its data processing using a Dataset in many areas.
This particular Dataset is built from an imported CSV rather than a
database, which is where many other Datasets come from. We do not want to
duplicate the functionality of our application to process this imported
data, we want to use the code that already exists, i.e. the code that
expects data input from a Dataset. It is not simply a matter of display.
Sid.
"Kerry Moorman" <Ke**********@discussions.microsoft.comwrote in message
news:68**********************************@microsof t.com...
>Sid,
Why do you need to get the data into a new dataset/datatable?
Just use the filtered dataview for display, that's what it is for.
The "ToTable" method is new in .Net 2.0, but you should not need it for display purposes.
Kerry Moorman
"Sid Price" wrote:
>>Robin,
DataView.ToTable is not a defined method ... I am using VB.NET 2003.
I don't see any way to get the filtered data from the DataView into my new Dataset.
Sid.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message news:Wq******************************@comcast.co m... You can use a dataview of the table for display.
dv = New DataView() dv.Table = ds.Tables("Customers") dv.RowFilter = "Country = 'USA'"
Then use the dataview to display.
You can also copy the dataview to a new table using dv.ToTable.
Robin S. Ts'i mahnu uterna ot twan ot geifur hingts uto. ----------------------------------------------- "Sid Price" <si*@nowhere.comwrote in message news:uQ**************@TK2MSFTNGP04.phx.gbl... I have Dataset that I need to filter into another Dataset for display and I can not find out how to do this. I have found methods for copying a Dataset but I can not see how to filter the rows copied using my query.
I hoped to be able to use a DataAdaptor to do this but SelectCommand requires a connection and I don't see how to create a connection to my Dataset object.
Any pointers would be much appreciated. Sid.
(VB.NET 2003)
Sid,
I just saw this post on another news group and thought it might apply to
what you are trying to do: http://www.gotdotnet.com/Community/M...aspx?id=397449
Kerry Moorman
"Sid Price" wrote:
Kerry,
The application does its data processing using a Dataset in many areas. This
particular Dataset is built from an imported CSV rather than a database,
which is where many other Datasets come from. We do not want to duplicate
the functionality of our application to process this imported data, we want
to use the code that already exists, i.e. the code that expects data input
from a Dataset. It is not simply a matter of display.
Sid.
"Kerry Moorman" <Ke**********@discussions.microsoft.comwrote in message
news:68**********************************@microsof t.com...
Sid,
Why do you need to get the data into a new dataset/datatable?
Just use the filtered dataview for display, that's what it is for.
The "ToTable" method is new in .Net 2.0, but you should not need it for
display purposes.
Kerry Moorman
"Sid Price" wrote:
Robin,
DataView.ToTable is not a defined method ... I am using VB.NET 2003.
I don't see any way to get the filtered data from the DataView into my
new
Dataset.
Sid.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:Wq******************************@comcast.com. ..
You can use a dataview of the table for display.
dv = New DataView()
dv.Table = ds.Tables("Customers")
dv.RowFilter = "Country = 'USA'"
Then use the dataview to display.
You can also copy the dataview to a new table using dv.ToTable.
Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"Sid Price" <si*@nowhere.comwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl... I have Dataset that I need to filter into another Dataset for display and I can not find out how to do this. I have found methods for copying a Dataset but I can not see how to filter the rows copied using my query.
I hoped to be able to use a DataAdaptor to do this but SelectCommand
requires a connection and I don't see how to create a connection to my
Dataset object.
Any pointers would be much appreciated.
Sid.
(VB.NET 2003)
This looks promising, thanks Kerry. I will be looking at this approach
later,
Sid.
"Kerry Moorman" <Ke**********@discussions.microsoft.comwrote in message
news:05**********************************@microsof t.com...
Sid,
I just saw this post on another news group and thought it might apply to
what you are trying to do:
http://www.gotdotnet.com/Community/M...aspx?id=397449
Kerry Moorman
"Sid Price" wrote:
>Kerry,
The application does its data processing using a Dataset in many areas. This particular Dataset is built from an imported CSV rather than a database, which is where many other Datasets come from. We do not want to duplicate the functionality of our application to process this imported data, we want to use the code that already exists, i.e. the code that expects data input from a Dataset. It is not simply a matter of display.
Sid.
"Kerry Moorman" <Ke**********@discussions.microsoft.comwrote in message news:68**********************************@microso ft.com...
Sid,
Why do you need to get the data into a new dataset/datatable?
Just use the filtered dataview for display, that's what it is for.
The "ToTable" method is new in .Net 2.0, but you should not need it for
display purposes.
Kerry Moorman
"Sid Price" wrote:
Robin,
DataView.ToTable is not a defined method ... I am using VB.NET 2003.
I don't see any way to get the filtered data from the DataView into my new Dataset.
Sid.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message news:Wq******************************@comcast.com ...
You can use a dataview of the table for display.
dv = New DataView()
dv.Table = ds.Tables("Customers")
dv.RowFilter = "Country = 'USA'"
Then use the dataview to display.
You can also copy the dataview to a new table using dv.ToTable.
Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"Sid Price" <si*@nowhere.comwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl... I have Dataset that I need to filter into another Dataset for display and I can not find out how to do this. I have found methods for copying a Dataset but I can not see how to filter the rows copied using my query.
I hoped to be able to use a DataAdaptor to do this but SelectCommand requires a connection and I don't see how to create a connection to my Dataset object.
Any pointers would be much appreciated. Sid.
(VB.NET 2003)
Kerry,
Thank you so much for the link, it pointed me in the correct direction to a
resolution of my issue.
Sid.
"Kerry Moorman" <Ke**********@discussions.microsoft.comwrote in message
news:05**********************************@microsof t.com...
Sid,
I just saw this post on another news group and thought it might apply to
what you are trying to do:
http://www.gotdotnet.com/Community/M...aspx?id=397449
Kerry Moorman
"Sid Price" wrote:
>Kerry,
The application does its data processing using a Dataset in many areas. This particular Dataset is built from an imported CSV rather than a database, which is where many other Datasets come from. We do not want to duplicate the functionality of our application to process this imported data, we want to use the code that already exists, i.e. the code that expects data input from a Dataset. It is not simply a matter of display.
Sid.
"Kerry Moorman" <Ke**********@discussions.microsoft.comwrote in message news:68**********************************@microso ft.com...
Sid,
Why do you need to get the data into a new dataset/datatable?
Just use the filtered dataview for display, that's what it is for.
The "ToTable" method is new in .Net 2.0, but you should not need it for
display purposes.
Kerry Moorman
"Sid Price" wrote:
Robin,
DataView.ToTable is not a defined method ... I am using VB.NET 2003.
I don't see any way to get the filtered data from the DataView into my new Dataset.
Sid.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message news:Wq******************************@comcast.com ...
You can use a dataview of the table for display.
dv = New DataView()
dv.Table = ds.Tables("Customers")
dv.RowFilter = "Country = 'USA'"
Then use the dataview to display.
You can also copy the dataview to a new table using dv.ToTable.
Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"Sid Price" <si*@nowhere.comwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl... I have Dataset that I need to filter into another Dataset for display and I can not find out how to do this. I have found methods for copying a Dataset but I can not see how to filter the rows copied using my query.
I hoped to be able to use a DataAdaptor to do this but SelectCommand requires a connection and I don't see how to create a connection to my Dataset object.
Any pointers would be much appreciated. Sid.
(VB.NET 2003)
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: ramesh |
last post by:
hi,
I am using Com+ in my application. It will have
InsertRecords,selectRecords,updateRecords function.
In the Web Form i have Drop-down list. I want to select
records from SQL and add it to this...
|
by: Cybertof |
last post by:
Hello,
Is it necessary to initially fill a dataset to be able to add a new row
to the dataset and then update the undercover database ?
(In the case of a very large database, this would mean...
|
by: Hugo Lefevre |
last post by:
dear,
I have a form (frmlogonaccounts.cs) with a combobox, which I want to fill up
with the first column of a dataset. The dataset is created in the class
Login. My problem is the next : I make...
|
by: Krzysztof Karnicki |
last post by:
I have such a problem… I have create my custom DataGridColumn inheriting from
System.Windows.Forms.DataGridColumnStyle on using it on DataGrid, to show
rows painted by me self. Because dates ...
|
by: crjunk |
last post by:
I have a 3 table in my DataSet that I'm filling with data. After I've
filled these 3 tables, I'm then trying to run a query that will fill a
4th table in the DataSet with data from the three...
|
by: Parveen |
last post by:
When I fill the same dataset table with new information from the database, instead of writing over
any previous data, the fill method appends to existing records in this dataset table. Is there a...
|
by: gillcleeren |
last post by:
I have a datagrid that has to be filled in a WinForms application. The
data comes from an Oracle database.
The normal procedure would be filling a dataset, but I have the problem
that there are...
|
by: Derek Vincent |
last post by:
Why am I having problems filling my dataset when I select fields of type
varchar(350) from interbase? I can fill the dataset when I select every
other field in the table but I receive and error...
|
by: WayneM |
last post by:
I have compact framework app that I was trying to test out on a windows form,
but I cannot get past the very first step of simply filling a DataGrid from a
DataSet. My code is
Dim sqlStmt As...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |