473,512 Members | 15,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

the find in a dataview???

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.




Oct 26 '06 #1
1 1067
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

"Raul" <ra**@inmovilla.comschreef in bericht
news:er****************@TK2MSFTNGP03.phx.gbl...
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.




Oct 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2322
by: Vitor Silva | last post by:
I'm trying to find the first record based on a string with wildcards. Ex: nº Name 0 John 1 Mary 2 Mariah 3 Mike dataview.sort="name"
3
6552
by: MajorTom | last post by:
Hello I need help. I have a datagrid that have a dataview as datasource. in the keyup event of one textbox I use dataview.rowfilter = some.text; when the condition of my rowfilter return...
2
6183
by: Zenobia | last post by:
Hi, Below is a bit of code from ASP.NET Unleashed which gives an error and I can't figure out why. It uses the Authors table from the standard Pubs database. The error message is...
3
2146
by: oscar | last post by:
i've created a search function, using vc#, and i'm using the dataview.find() method to get the index of the found record. the problem is that there are many similar names. it always returns the...
4
2603
by: Aaron Smith | last post by:
Dim dv As DataView = New DataView(FacilitiesDS1.Facilities, "", "ID ASC", DataViewRowState.CurrentRows) Dim iPos As Integer = dv.Find(dr.Item("ID")) Me.BindingContext(FacilitiesDS1,...
2
2444
by: =?Utf-8?B?UmljaA==?= | last post by:
Greetings, I need to locate a row (or see if it exists) in a table contained in a dataset. The DataView.Find method seems to work OK for one criteria but I need to use 2 criterias. Is there...
4
14611
by: =?Utf-8?B?UmljaA==?= | last post by:
Is it possible to use a wildcard like feature with Dataview.Find? Actually, I tried that but did not get any rows. Is there some wildcard like feature of the dataview or some other object that I...
3
19748
by: Edwin Smith | last post by:
Hello: I have the following code which works on a DataGridView binding source: private void textBox1_TextChanged(object sender, EventArgs e) { this.pATIENTSBindingSource.Position =...
1
2956
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, I set a dataview to a table. Then I bind a currencyManager to the dataview. I can iterate through the dataview no problem so far. Then I sort the dataview on a certain field and rebind...
0
934
by: Michael_R_Banks | last post by:
I have a table ("checkout") that I'm tracking equipment checkout transaction. It has columns: checkoutid (key), checkedbyid, checkedtoid, dateout, datein and inventoryid. When the user scans an...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.