Hi,

I'm planing to have a form with 10 bound textboxes to a dataset throgh
the currency manager and bindingcontext. What I need to do is use
that same form based on the user choice. He/she could first press a
button to fill-out all textboxes from dataset and do normal navigation
through all records in the dataset, OR he/she could enter a search
criteria in the first textbox (txtEmployee ID), press the same button
to search and get that specific record only. I don't have any problem
with the first case (press the button to get records and navigate),
the problem is when the button is pressed for search, how can I search
the dataset????

Correct me if i'm wrong, I'm planing to clear the binding property of
all textboes and clear thier TEXT property. The question is How to
search for that specific record based on the field enter in the
textbox(which the choice to search)


MTIA,
Grawsha

Re: One bound form, two functions..help please by Miha

Miha
Fri Dec 05 01:23:26 CST 2003

Hi,

One way would be to create a DataView over datatable with criteria specified
as rowfilter.
Then just bind it to your textboxes.

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com

"al" <grawsha2000@yahoo.com> wrote in message
news:66edfd3c.0312041637.3d7fa508@posting.google.com...
> Hi,
>
> I'm planing to have a form with 10 bound textboxes to a dataset throgh
> the currency manager and bindingcontext. What I need to do is use
> that same form based on the user choice. He/she could first press a
> button to fill-out all textboxes from dataset and do normal navigation
> through all records in the dataset, OR he/she could enter a search
> criteria in the first textbox (txtEmployee ID), press the same button
> to search and get that specific record only. I don't have any problem
> with the first case (press the button to get records and navigate),
> the problem is when the button is pressed for search, how can I search
> the dataset????
>
> Correct me if i'm wrong, I'm planing to clear the binding property of
> all textboes and clear thier TEXT property. The question is How to
> search for that specific record based on the field enter in the
> textbox(which the choice to search)
>
>
> MTIA,
> Grawsha