RafaelSoteldo
Fri Apr 25 13:46:05 CDT 2008
I'll try it...
thanks
--
Rafael Soteldo
"Cor Ligthert[MVP]" wrote:
> Rafael,
>
> The currencymanager exist much longer than the bindingsource, it is there as
> long as there is Net.
>
> Two samples.
>
http://www.vb-tips.com/DataGridRowChange.aspx
>
>
http://www.vb-tips.com/DataGridRowCount.aspx
>
> Cor
>
> "Rafael Soteldo" <RafaelSoteldo@discussions.microsoft.com> schreef in
> bericht news:18C731C5-F481-437D-A342-87A955A0A4C8@microsoft.com...
> > Hi Cor:
> >
> > The CurrencyManager holds the position of the current row in the
> > BindingSource, but I want to navigate directly to a specific row whose
> > relative position in the DataTable is unknown. The DataTable doesn't
> > expose a
> > CurrencyManager.
> >
> > I guess there must be another way...
> > --
> >
> > Rafael Soteldo
> >
> >
> > "Cor Ligthert[MVP]" wrote:
> >
> >>
> >> Rafael,
> >>
> >> You are using so many techniques over each other that I don't know how to
> >> answer this. However this class manages your positions in a table.
> >>
> >>
http://msdn2.microsoft.com/en-us/library/system.windows.forms.currencymanager.aspx
> >>
> >> (It has nothing to do with currencies in the way of money as sometimes is
> >> thought)
> >>
> >> Cor
> >>
> >> "Rafael Soteldo" <RafaelSoteldo@discussions.microsoft.com> schreef in
> >> bericht news:920F4FCF-ECB4-46C3-9F1D-971BC45E84D3@microsoft.com...
> >> > Hi there:
> >> >
> >> > I need to get the position of a given Row to navigate directly to it,
> >> > in a
> >> > form that has a BindingNavigator and several TextBoxes showing each
> >> > rows
> >> > details...
> >> >
> >> > I dragged the fields from the Data Sources window to the form in the
> >> > designer, which created the BindingNavigator attached to a
> >> > BindingSource.
> >> >
> >> > As far as I know, the BindingSource lets you move to the first, next,
> >> > to a
> >> > position, previous and last row of a DataTable, 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 attached to the
> >> > BindingSource, and then set the BindingSource.Position to that
> >> > position.
> >> >
> >> > But how ca I do that?, the DataTable doesn't expose a property that
> >> > shows
> >> > the relative position of each row in the table.
> >> >
> >> > 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...
> >> >
> >> > Thanks in advance...,
> >> >
> >> > Rafael Soteldo
> >>
> >>
>
>