I have a GridView using a SqlDataSource. I am trying to use the built in Edit feature of the GridView to update the single selected row. However, when I edit one of the fields, it changes the values for that column in all the rows of the table instead of just the selected row I am editing.
Here is the SQL qeury I am using:
UPDATE Inventory
SET Amount = @amount, EntryDate = @entrydate
WHERE InventoryId = InventoryId
InventoryId is the primary key for that table. Any thoughts? Thanks guys
Start Free Trial