i have one gridview contains edititemtemplate(which
contains update and cancel buttons) and i have one item
template (contains edit button)
i want the code for update and cancelbuttons in edit item
template and i want the code for edit button in
itemtemplate. please help me

Answer Posted / vishwaraj malik

write the following code

protected void GVAdvrtDetail_RowEditing(object sender,
GridViewEditEventArgs e)
{
GVAdvrtDetail.EditIndex = e.NewEditIndex;

}
protected void GVAdvrtDetail_RowCancelingEdit(object
sender, GridViewCancelEditEventArgs e)
{
GVAdvrtDetail.EditIndex = -1;
}

protected void GVAdvrtDetail_RowUpdating(object sender,
GridViewUpdateEventArgs e)
{

}


use findcontrol to update the recoed..

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a session http?

521


How do you remove duplicates without using remove duplicate stage?

617


Explain transparent caching with aop?

523


Explain the significance of routing? : asp.net mvc

542


Why is it preferred to not use finalize for clean up?

560






Where do we store our connection string in asp.net application?

528


Why do we need Sessions?

578


What is an axd file?

594


Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?

2029


Define what is razor? : asp.net mvc

580


Describe the sequence of action takes place on the server when ASP.NET application starts first time?

622


What is the use of ASP.NET routing?

559


What are the layouts of ASP.NET Pages?

619


What are server-side comments in ASP.NET?

548


What are the ways to sending the data in ASP.NET page?

567