Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I am working on a shopping cart application.

When shopper selects a product in gridview1 it will be added to cart ie gridview2.

(is it good practice to use gridview for shopping cart?? any suggestions??)

I am able to move one row from gv1 to gv2.

but when the second row is moved to gv2, then it should be added to
the second row of the gv2 and accordingly third row to third row of the gv2.

now every time i select a row in gridview1, it replaces the first row of gridview2.

how to overcome this problem??

Thanks
Pradeep
Posted
Comments
Sushil Mate 18-Oct-12 7:25am    
can you show us the code?
vivektiwari97701 18-Oct-12 7:27am    
can u past ur code???....
adriancs 18-Oct-12 7:31am    
+1, can u display your code??

1 solution

SQL
Get the last row index of the gridview and add your row at the lastrowindex+1
If you coludnot make it out post your code
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900