the find in a dataview???

R

Raul

My problem is the following one it is in a datagridview I am showing some
data and I would like to locate me in a certain line.

Ex. Locate me in a line that has the telephone 999 and this orderly one for
name

ID - NAME - TELEPHONE
1 - AAA - 111
2 - BBB - 444
3 - CCC - 555
4 - DDD - 666
.. -... -..
20 - II - 999
.. -... -..
NN - NN - NN

Telephone is not key primary in the datatable

I want to continue showing all the registrations that is to say I cannot use
the filter and I want that this orderly one for name.

Then it is supposed that the method find of the dataview would not work,
since if I want to look for for telephone he/she has to be ordered by
telephone.

That is to say that the only option that I know is to travel me the list to
know in that lines this to select it.


I find difficult to believe that this is the solution.

Is there another class but appropriate for what I need????

I request you make me see the light.
 
C

Cor Ligthert [MVP]

Raul,

You can make as many (New) dataviews as you want (so with that you can solve
your problem). However, you give the idea in the way you wrote your message,
if what you call "traveling" through the code is a lot of work, while it is
nothing more than a for loop. How do you think that it is done behind the
scene? DotNet programming is real programming, not a kind of program
generating. (Although there are a lot of wizards and designers to help you).

As last; there is no problem with crossposting to these dotNet newsgroups as
it is proper done.
Some people won't answer if there are more than 3 crosspostings.

I hope this helps,

Cor
 

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