Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
after putting edit button in grideview what code i have to do on rowEditing event of this button so that i can edit that row f grideview?
please help me...
Posted

 
Share this answer
 
 
Share this answer
 
 
Share this answer
 
use Ajax hover menu to edit in gridview

open gridview in editmode on click[^]
 
Share this answer
 
want somthing like this....


C#
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
       {
           int id = Convert.ToInt16(GridView1.DataKeys[e.NewEditIndex].Values[0].ToString());

           cnn.Open();
           SqlCommand cmd = new SqlCommand("delete from call_details where id=" + id, cnn);
           int result = cmd.ExecuteNonQuery();
           cnn.Close();

           GridView1.DataBind();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900