Click here to Skip to main content
15,907,395 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
i created one grid view, in that i used one temperory data table to store the data, my problem is, how to delete a entire row in grid view.

1 solution


You have to do following:

1. define DataKey in gridview
2. add Template Column with LinkButton to delete row.
3. create event onRowCommond on gridview
4. find DataKeys for command row to delete row from the temporary table
5. Delete row from temporary table using datakey

Please do let me know, if you have any doubt.

Please provide Vote if this would be helpful to you.

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