Formview fired event itemupdating which wasn t handled Emo chat room
The way we’ll accomplish this is to create two properties that store those values in View State.
We’ll get to how these properties are populated shortly, but first we need to go back to the Bind Data method.
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).
In addition to that, we’re resetting the Edit Index and Selected Index when the page is changed to avoid cases, for example, where you change pages and are suddenly editing a different item.
The Grid View Row is the naming container for the Text Box in this case, so we need to call Find Control on the appropriate row, but we do not need to call it on the specific cell.
We also need force databinding to occur when then page is loaded, which we’ll handle in Page_Load.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.Posted by: Aaron Goldenthal 4/19/2009 PM One of the questions I see frequently on the ASP.NET forums is how to deal with exceptions like The Grid View ‘Grid View1’ fired event Row Editing which wasn’t handled.
Finally we need to populate the Sort Expression and Sort Direction when they change, and we’ll handle that in the Sorting event. Also like paging, so show that it does get called, databinding is handled in the Sorted Event ( First, we obtain the User ID of the affected row from the Grid View Data Keys collection, which we use to pull the appropriate record from the database.