After deleting, updating rows of the gridview, if you want to update the gridview display, you can have a Delete web method call from javascript and RowDeleting method, you can refresh / rebind the gridview.
Reason for this.
1. It has lower overheads compared to direct ItemCommand delete, because ItemCommand method will try to find the control from gridview and get the value of the ID of the grid by iterating from row to row and column to column.
2. PageMethod is a static webmethod, so we can't have the access to the page controls
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment