Editable master/details datagrid

Results 1 to 2 of 2

Thread: Editable master/details datagrid

  1. #1
    Marina Soutorikhina Guest

    Default Editable master/details datagrid

    I am trying to create an editable master/details datagrid. I can edit master datagrid but cannot edit details datagrid. I get error msg: <BR>Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index<BR><BR>Source Error: <BR><BR><BR>Line 131:<BR>Line 132: Dim vSQL As String<BR>Line 133: vSQL = "Update Teams Set TeamName =&#039;" & objTeamNameCtrl.Text & "&#039;,TeamColor =&#039;" & objTeamColorCtrl.Text & "&#039;,AgeLevel=&#039;" & objAgeLevelCtrl.Text & "&#039;, Type =&#039;" & objTypeCtrl.Text & "&#039; Where TeamID = &#039;" & dgDetails.DataKeys(objArgs.Item.ItemIndex) & "&#039;"<BR>Line 134:<BR>Line 135: conn = New SqlConnection("data source=Archive;initial catalog=BodyZone;persist security info=true;user id=sa;pwd=sysadmin;workstation id=ISP05;packet size=4096")<BR> <BR>How can I correct this? Please, advise.

  2. #2
    Marina Soutorikhina Guest

    Default RE: Editable master/details datagrid

    Never mind. I found the way. Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts