Asp net gridview rowupdating firing twice
I have a Grid View and its Data Source is datatable. I can't seem to delete that row when I click the 'delete' button that invokes the event to remove the row.[code]... NET forums is how to deal with exceptions like The Grid View 'Grid View1' fired event Row Editing which wasn't handled.The Grid View 'Grid View1' fired event Page Index Changing which wasn't handled.
We’ll start with binding data to the Grid View, then build up functionality from there.
First, we’ll implement a method to databind the Grid View, which will be called whenever databinding needs to be performed.
We’re using Linq to SQL to pull data from our database and bind it to the Grid View.
We’ll revisit this method when we implement the sorting functionality.
We also need force databinding to occur when then page is loaded, which we’ll handle in Page_Load.
The required actions for paging to work are setting the new page index, setting the Data Source, and calling Data Bind (the last two through the Bind Data method).