All,
I want to have my user select a record from a datagrid and based on the information in the record bring up another screen. I have coded this, but sometime when the user selects the 5th record and double clicks on it, information displayed is for the first record. I debugged the code and when what I described happens the position for the record that is selected is set to 0. Any ideas as to what I'm doing wrong?
Here is the code.
Dim cm As CurrencyManager = CType(Me.BindingContext (Me.dgResults.DataSource, dgResults.DataMember), CurrencyManager)
Dim dv As DataView = CType(cm.List, DataView)
Dim dr As DataRow
dr = dv.Item(cm.Position).Row
ShowTimeCollection(dr.Item("taskhdr_id"), dr.Item("taskdtl_id"), dr.Item("dc_id"))
Thanks
Jim