all groups > dotnet academic > december 2003 >
You're in the

dotnet academic

group:

Search a Dataset


Search a Dataset Miro
12/29/2003 1:50:25 AM
dotnet academic:
Hi All,

I am rather frustrated by the fact that i cant seam to
find a way to search/locate in a dataset. I would prefer
not to have to use the Filter. At the moment i
am "walking" thru the dataset, which can be hairy as the
recordset might rather large. I have optimised the SQL
statement to try and return a smaller set of data back,
but this still is not the solution.

Can anyone help. As i said before, i would hate to have
to revert to using the filtering.

many thanks for your time.

Rgds
Miro
Re: Search a Dataset William Burrows [MVP]
12/29/2003 11:35:37 AM
Hi Miro,

I am not sure I understand what you mean by "filter", but why not just use
the SQL Where clause to return what you want from the database?

bill burrows

[quoted text, click to view]

Re: Search a Dataset Miro
1/9/2004 3:22:32 AM
The SQL already returns a small dataset, but it might
still contain 15+ records and i dont wanna have to For
Each, i wanna search in this dataset.

Does that make more sense ?


[quoted text, click to view]
Re: Search a Dataset Darran
1/30/2004 7:02:45 AM
I also would like to utilize a text box with a button used
to submint a search for one specific item. Much like one
uses a form and "GET" or "POST" to obtain one specific
item from a Dataset. In my case an employee listing of
900+ people where I want just one name to come back, like
Anderson for a last name.

I am trying to stay away from ADO.NET for now and having
just a flat file doesn't meet with the approval of the
group who wants all items returned from a database.

Thanks in advance,

Darran


[quoted text, click to view]
Re: Search a Dataset Gerry O'Brien [MVP]
2/19/2004 10:30:41 AM
Have you tried using a DataView?

--
Gerry O'Brien
Visual Developer .NET MVP


[quoted text, click to view]

Re: Search a Dataset Spiff
3/5/2004 1:24:16 AM
Have you tried using the Select method of the DataTable object?

oDataSet.Tables[0].Select()

For more info (watch for wrapping):
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatatableclassselecttopic.asp

[quoted text, click to view]

Re: Search a Dataset ISMAILRAJPUT
4/28/2004 1:29:41 AM
you mean you want to filter the dataset?
[quoted text, click to view]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemdatadatatableclassselecttopic.asp
[quoted text, click to view]

AddThis Social Bookmark Button