How to keep binding source current with datagrid row clicked...

In the attached code, bs is a bindingsource for a datagrid.  
bs.current always returns the first row in the grid regardless of which row in the grid has been clicked on.
How do I keep the bindingsource current with the visually sekected row on the datagrid?

Thanks in advance.
Public Function RemovePages(ByRef lex As LastException) As Boolean

        Dim fc As HPFFAFormClass = Nothing
        Dim fp As PageFileClass = Nothing
        Dim retval As Boolean = True

        Try
            fc = bs.Current
            For Each fp In frm.ListBoxPageFiles.SelectedItems
                fc.Pages.Remove(fp)
            Next
            frm.ListBoxPageFiles.DataSource = Nothing
            frm.ListBoxPageFiles.DataSource = fc.Pages
            frm.ListBoxPageFiles.DisplayMember = "PageName"
            frm.ListBoxPageFiles.ValueMember = "Pageno"

        Catch ex As Exception
            retval = False
            lex.Message = ex.Message
            If Not ex.InnerException Is Nothing Then
                lex.Detail = ex.InnerException.Message
            End If
            lex.Code = "System Exception"
            lex.Source = "FormManagerCtrl - RemovePages"

        End Try
        
        Return retval


    End Function

Open in new window

codefingerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

codefingerAuthor Commented:
Four hours later to work out  this simple solution with no help from Experts Exchange OR Google....
In selectionchanged event on datagrid --
bs.position = grid.currentrow.index

You guys should be paying me!   (grin)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.