Hi. I have a problem with gridview whereby when i want to update 1 row, other row changes as well.
For example, i change the quantity in row 1 from 1 to 2, but when i click on update, other row's 'quantity' change to 2 as well. In the source code for this page, i add UpdateCommand=" UPDATE [Order_Details] SET [Quantity] = @Quantity" under <asp: SqlDataSource>
Without UpdateCommand=" UPDATE [Order_Details] SET [Quantity] = @Quantity", this error will be shown when i click on 'update' button >>>
Updating is not supported by data source 'SqlDataSourceS hoppingCart' unless UpdateCommand is specified.
Please help...When i edit a row, i only want to update tht particular row and not every row in the gridview.
Many thanks.
For example, i change the quantity in row 1 from 1 to 2, but when i click on update, other row's 'quantity' change to 2 as well. In the source code for this page, i add UpdateCommand=" UPDATE [Order_Details] SET [Quantity] = @Quantity" under <asp: SqlDataSource>
Without UpdateCommand=" UPDATE [Order_Details] SET [Quantity] = @Quantity", this error will be shown when i click on 'update' button >>>
Updating is not supported by data source 'SqlDataSourceS hoppingCart' unless UpdateCommand is specified.
Please help...When i edit a row, i only want to update tht particular row and not every row in the gridview.
Many thanks.
Comment