Datagrid Update

Results 1 to 2 of 2

Thread: Datagrid Update

  1. #1
    Chris McFarland Guest

    Default Datagrid Update

    I was attempting to employ the example from the WROX Active Server Pages+ book utilizing the datagrid and the editing of its contents and am receiving the following error: System Error &Hc0000005&. It is throwing out this error when it is attempting to execute the following line of code:<BR><BR> myCmd.Parameters.Item("@ProductID").Value=ProductG rid.DataKeys.Item(E.Item.ItemIndex).<BR><BR>Does anyone have any suggestions. Thanks in advance for any help you may be able to provide.

  2. #2
    Join Date
    Dec 1969

    Default RE: Datagrid Update

    I was able to make this example work with the following syntax:<BR><BR>myCmd.Parameters.Item("@ProductID") .Value=ProductGrid.DataKeys(CInt(E.Item.ItemIndex) )<BR><BR>Hope that helps.

Posting Permissions

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