The System.Web.UI.WebControls.GridViewEditEventArgs class is part of the System.Web assembly in C#. It is used for handling the editing event of a GridView control, which allows users to edit the data in the grid.
In this example, the GridView's edit index is set to the new edit index supplied in the GridViewEditEventArgs parameter, and the grid is re-bound to display the editable row.
Example 2:
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { string name = e.NewValues["Name"].ToString(); int age = Convert.ToInt32(e.NewValues["Age"]); int id = Convert.ToInt32(GridView1.DataKeys[e.RowIndex].Value);
// Code to update database with new data... }
In this example, the GridViewUpdateEventArgs parameter is used to get the new values (entered by the user) for a row being updated in a GridView control. These values are then used to update the corresponding record in a database.
Package Library: System.Web
C# (CSharp) System.Web.UI.WebControls GridViewEditEventArgs - 42 examples found. These are the top rated real world C# (CSharp) examples of System.Web.UI.WebControls.GridViewEditEventArgs extracted from open source projects. You can rate examples to help us improve the quality of examples.