Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

search record in a table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
HS1 - 18 Oct 2004 03:55 GMT
Hello

To present (and manipulate) data in a table, I use an DataGrid and a DataSet
"ds"

DataGrid1.DataSource = ds

However, to search a record in this DataGrid, I have to use DataView "dv"

DataGrid1.DataSource = dv
int =  dv.Find (.......)

Can I use only one of them for both searching and manipulating data for a
table

Thank you very much
Best regards
S.Hoa
Cor Ligthert - 18 Oct 2004 09:06 GMT
S. Hoa,

I think that the most easiest way is to get your row is to create another
(extra) dataview.

A dataview is just a filter on your table.

There is no dataview find, because that belongs to the datarowcollection.

Use on that other dataview the rowfilter what is very easy to use. Possible
is as well the datatable.select. Beneath in another message I have send the
links of explanations for all those to somebody else.

http://groups.google.com/groups?selm=Of0zUjKlEHA.3476%40tk2msftngp13.phx.gbl

I hope this helps?

Cor

"HS1" <son@slingshot.co.nz>

> To present (and manipulate) data in a table, I use an DataGrid and a
> DataSet
[quoted text clipped - 13 lines]
> Best regards
> S.Hoa
Frank - 18 Oct 2004 09:25 GMT
Cor, I think you are mistaken. A dataview has a find method, it works on the
sorted column(s).
Frank

> S. Hoa,
>
[quoted text clipped - 8 lines]
> is as well the datatable.select. Beneath in another message I have send the
> links of explanations for all those to somebody else.

http://groups.google.com/groups?selm=Of0zUjKlEHA.3476%40tk2msftngp13.phx.gbl

> I hope this helps?
>
[quoted text clipped - 19 lines]
> > Best regards
> > S.Hoa
Cor Ligthert - 18 Oct 2004 09:48 GMT
Frank,

Thanks a lot I never saw that one.

:-)

Cor

"Frank" <frank@frank.com>
.
> Cor, I think you are mistaken. A dataview has a find method, it works on
> the
[quoted text clipped - 43 lines]
>> > Best regards
>> > S.Hoa

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.