hi friends once again i am with you.
now we are going to learn how we change the mode of the grid view.
please remember read my post from first to this to learn the grid view in simplest manner.
how you display the edit link on the gridview.
in Default.aspx click on the gridview now goes to property of it there is an AutoGenerateEditButton make it true.
please read and write the coding below :
protected void GridView1_RowEditing(object sender,GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
BindData(); // please see the Part - I for this coding
}
protected void GridView1_RowCancelling(object sender, GridViewCancelEditEventArgs e)
{
GridView.EditIndex = -1;
BindData(); // please see the Part - I for this coding
}
hope this help you :)
Subscribe to:
Post Comments (Atom)
1 comments:
You write very well.
Post a Comment