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] >-----Original Message-----
>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 ?
>
>
>>-----Original Message-----
>>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
>>
>>"Miro" <miro@digibility.co.za> wrote in message
>>news:045901c3cdf1$2eae8eb0$a601280a@phx.gbl...
>>> 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
>>>
>>
>>
>>.
>>
>.
Have you tried using a DataView?
--
Gerry O'Brien
Visual Developer .NET MVP
[quoted text, click to view] "Miro" <anonymous@discussions.microsoft.com> wrote in message
news:037101c3d6a2$e01e3d30$a001280a@phx.gbl...
> 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 ?
>
>
> >-----Original Message-----
> >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
> >
> >"Miro" <miro@digibility.co.za> wrote in message
> >news:045901c3cdf1$2eae8eb0$a601280a@phx.gbl...
> >> 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
> >>
> >
> >
> >.
> >
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] "Miro" <anonymous@discussions.microsoft.com> wrote in message
news:037101c3d6a2$e01e3d30$a001280a@phx.gbl...
> 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 ?
>
>
> >-----Original Message-----
> >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
> >
> >"Miro" <miro@digibility.co.za> wrote in message
> >news:045901c3cdf1$2eae8eb0$a601280a@phx.gbl...
> >> 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
> >>
> >
> >
> >.
> >
you mean you want to filter the dataset?
[quoted text, click to view] "Spiff" <one_of_bunch@nospam2me.hotmail.com> wrote in message
news:#GFBhLoAEHA.392@TK2MSFTNGP12.phx.gbl...
> 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] >
> "Miro" <anonymous@discussions.microsoft.com> wrote in message
> news:037101c3d6a2$e01e3d30$a001280a@phx.gbl...
> > 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 ?
> >
> >
> > >-----Original Message-----
> > >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
> > >
> > >"Miro" <miro@digibility.co.za> wrote in message
> > >news:045901c3cdf1$2eae8eb0$a601280a@phx.gbl...
> > >> 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
> > >>
> > >
> > >
> > >.
> > >
>
>