One bound form, two functions..help please

A

al

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
 
M

Miha Markic

Hi,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top