Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGrids
Message
From
14/05/2004 10:24:36
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
DataGrids
Miscellaneous
Thread ID:
00904066
Message ID:
00904066
Views:
63
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
Next
Reply
Map
View

Click here to load this message in the networking platform