Rowupdating in gridview in asp net example

Rated 3.95/5 based on 698 customer reviews

Here, we store the value of Sort Expression property into a Veiw State variable called sortexpression. Finally, we call Bind Grid() method which will bind sorted version of the Data View with the grid.We need to access this variable from Bind Grid() method so that our sorting will work correctly under all the circumstances. The following figure shows the Grid View after implementing sorting.

The Sorting event handler receives an event argument of type Grid View Sort Event Args.

aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.

event is raised when a button is clicked in the Grid View control.

event is raised when a button listed in the previous table is clicked, it is recommended that you use the events listed in the table for the operation.

A Grid View Command Event Args object is passed to the event-handling method, which enables you to determine the command name and command argument of the button clicked.

Leave a Reply