Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

w2ksp4.exe, WwwxxXdbf, procmail "FROM_MAILER" patch, Use of assignment to $[ is deprecated at /usr/local/sbin/apxs line 86. , wwwxxx vim, mysql closing table and opening table, 800c5000, setgid operation not permitted, pciehp: acpi_pciehprm on IBM, WWWXXX.DBF

Links

XODOX
Impressum

#1: Need direct navigation to a row in a BindingSource

Posted on 2008-04-23 00:47:01 by RafaelSoteldo

Hi there:

I need to get the position of a given DataRow to navigate directly to it
with a BindingSourceNavigator.

I have a BindingNavigator and several textboxes showing each field of
a given table.

I dragged the fields from the Data Sources window to the form in the designer.

As far as I know, the BindingSource lets you move first, next, to a
position..., so, what if I need to navigate directly to a row that has a
specific value in a field (for instance, "Carl" in the field "Name" in the
DataTable "People"). I suppose I should get the row position within the
DataTable, in order to set the BindingSource.Position and have the textboxes
show each piece of information.

Moreover, what if the DataSource is a DataView with filters set, how do I
get the position of that given row within this DataView?

Please, need help...

My best regards,

Rafael Soteldo

Report this message