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.Click the button below this post to show your appreciation!

fired event rowupdating which wasn-32fired event rowupdating which wasn-13fired event rowupdating which wasn-19

The Grid View does know the events that should be used to implement them, so the exceptions shown above are thrown when you try to perform one of these operations, but you have implemented the appropriate event handler.

The example shown here is for a Grid View, but the same types of event handlers must be implemented in roughly the same way for other data controls including the Form View, Details View, and List View. This is the final Grid View markup, so you can see the event handlers we’re going to implement.

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 also want it to be something persistent, so that, for example, if you sort, then page, the sort is maintained.

The way we’ll accomplish this is to create two properties that store those values in View State.

Now you can ask questions directly to me on my new site ASPForums.

Net Question Answer site, specially started to allow visitors of this site ask their doubts and queries. Just click the Ask Now button and ask your question now.

We’ll get to how these properties are populated shortly, but first we need to go back to the Bind Data method.