473,396 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1559
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
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
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
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
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
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
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
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
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
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
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.