Click here to Skip to main content
15,917,645 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have created one DataGrid and it is showing the data from the database(manually filled database not assigned). It is working for addition of records. In it first 2 columns are edit and delete record. When we delete record it is deleted and working fine but when page refreshed manually it is calling the delete function written for delete command and on each refresh it is deleting first record.
Please suggest any solution......

Its urgent.
Thank You!!!
Posted
Updated 30-Oct-10 1:06am
v2
Comments
test-09 31-Oct-10 9:39am    
can you show us the code?

1 solution

For starters, your procedure or sql for the delete command should be smart enough to not delete anything without a valid argument. It sounds like your default argument uses the same identifier as your first record.

That being said, like test-09's comment above, without some code snippets we're not likely to be able to help you much.
 
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